GemParameter class Core

A parameter is a tuple ( key, value, name ).

key is the string parameter identifier

value is the parameter variant value.

name is the string parameter name. When parameters are returned from SDK the name is translated in the SDK language

value is the parameter value. It is dependent on the type

Constructors

GemParameter.new({ValueType? type, dynamic value, String? name, String? key})
Constructs a parameter object with key, value, and optional name.
GemParameter.fromJson(Map<String, dynamic> json)
factory
GemParameter.withBool({required String key, required bool value, String? name})
Creates a GemParameter with a ValueType.bool value type
factory
GemParameter.withInt({required String key, required int value, String? name})
Creates a GemParameter with a ValueType.int value type
factory
GemParameter.withList({required String key, required ParameterList value, String? name})
Creates a GemParameter with a ValueType.list value type
factory
GemParameter.withReal({required String key, required double value, String? name})
Creates a GemParameter with a ValueType.real value type
factory
GemParameter.withString({required String key, required String value, String? name})
Creates a GemParameter with a ValueType.string value type
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
key String?
The parameter key.
getter/setter pair
name String?
The parameter name.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ValueType?
The parameter type.
getter/setter pair
value ↔ dynamic
The parameter value.
getter/setter pair

Methods

asJson() Map<String, dynamic>?
Returns the parameters as a deeply structured JSON object (the lists contained within will be expanded).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(covariant GemParameter other) bool
The equality operator.
override