LiveStateField class
One field of a running app's page state, read by metro live:run data.
Constructors
- LiveStateField({required String name, required String type, Object? value, int? count, bool truncated = false, String? unread})
-
Creates a LiveStateField named
nameof typetype.const
Properties
- count → int?
-
How many items the value holds, for a list, set or map.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isOpaque → bool
-
Whether value is the app's
toString()rather than real JSON.no setter - name → String
-
The field's name, as it's written on the state class.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- truncated → bool
-
Whether only the first items of a long collection were encoded.
final
- type → String
-
The runtime type of the field's value, e.g.
List<Message>.final - unread → String?
-
Why the value couldn't be read, e.g.
not initialized, or null when it was.final - value → Object?
-
The value, decoded from the app's JSON, or null when unread says why
it couldn't be read.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
The
--jsonrepresentation. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited