SafeMap class Null safety

Constructors

SafeMap(dynamic value)

Properties

boolean bool
read-only
dateTime DateTime?
DateTime form String value. Use DateTime.tryParse Function.
read-only
dateTimeFromMicrosecond DateTime?
DateTime from this.forceInt value as microsecond
read-only
dateTimeFromMillsecond DateTime?
DateTime from this.forceInt value as millsecond
read-only
dateTimeFromSecond DateTime?
DateTime from this.forceInt * 1000 value
read-only
doubleOrZero double
double or 0
read-only
doubleValue double?
read-only
forceInt int?
read-only
hashCode int
The hash code for this object.
read-onlyinherited
hasValue bool
read-only
intOrZero int
int or 0
read-only
intValue int?
read-only
list List?
read-only
listOrBlank List
List or []
read-only
map Map?
read-only
mapOrBlank Map
Map or {}
read-only
number num?
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
string String?
read-only
toDouble double?
read-only
toInt int?
"1.0" => null 122.0 => 122
read-only
toNum num?
read-only
v → dynamic
read-only
value → dynamic
final

Methods

isEmpty() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](dynamic key) SafeMap