DictionaryInterface class Null safety Document
Defines a set of methods for readonly accessing Dictionary data.
- Implemented types
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
-
keys
→ List<
String> -
The keys of the entries in this dictionary.
read-only
- length → int
-
The number of entries in this dictionary.
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
array(
String key) → Array? -
Returns the value for the given
key
as an Array. [...] -
blob(
String key) → Blob? -
Returns the value for the given
key
as a Blob. [...] -
boolean(
String key) → bool -
Returns the value for the given
key
as a bool. [...] -
contains(
String key) → bool -
Returns whether an entry with the given
key
exists in this dictionary. -
date(
String key) → DateTime? -
Returns the value for the given
key
as a DateTime. [...] -
dictionary(
String key) → Dictionary? -
Returns the value for the given
key
as a Dictionary. [...] -
float(
String key) → double -
Returns the value for the given
key
as a floating point number. [...] -
integer(
String key) → int -
Returns the value for the given
key
as an integer number. [...] -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
number(
String key) → num? -
Returns the value for the given
key
as a num. [...] -
string(
String key) → String? -
Returns the value for the given
key
as a String. [...] -
toPlainMap(
) → Map< String, Object?> - Deeply converts this dictionary into a representation of plain Dart objects and returns it. [...]
-
toString(
) → String -
A string representation of this object. [...]
inherited
-
value<
T extends Object> (String key) → T? -
Returns the value for the given
key
. [...]
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited
-
operator [](
String key) → Fragment -
Returns a Fragment for the value at the given
key
.inherited