JsonList class
Constructors
- JsonList.new(List? list, [void _onError(JsonException error)?])
-
Create JsonList from List
const
Properties
Methods
-
cast<
R> ([R? defaultValue]) → Iterable< R> - Cast source of the JsonList
-
castOr<
R> ([R? defaultValue]) → Iterable< R?> - Cast source of the JsonList
-
convert<
R> (R converter(dynamic value)) → Iterable< R> - Convert each element with converter.
-
convertJsonList<
R> (R converter(JsonList value), [List? defaultValue]) → Iterable< R> - Represents each element of the list as JsonList and convert it with converter.
-
convertJsonMap<
R> (R converter(JsonMap value), [Map< String, dynamic> ? defaultValue]) → Iterable<R> - Represents each element of the list as JsonMap and convert it with converter.
-
elementAt(
int index) → Json -
Returns
index
] element from the list -
elementAtOr(
int index, [Object? defaultValue]) → Json? -
Returns
index
] element from the list or default value -
first(
) → Json - Returns first element from the list
-
firstOr(
[Object? defaultValue]) → Json? - Returns first element from the list or default value
-
last(
) → Json - Returns last element from the list
-
lastOr(
[Object? defaultValue]) → Json? - Returns first element from the list or default value
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJsonString(
) → String - Returns string representation of the list
-
toList(
) → List - Returns source of the JsonList
-
toString(
) → String -
Returns string representation of the JsonList
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited