isNull property

  1. @override
bool get isNull
override

Returns whether or not current type value is null. Example:

final myNum = JsonIntNullable()..set(null);
assert(myNum.isNull);

Implementation

@override
bool get isNull => _isNull;
set isNull (bool isNull)

Implementation

set isNull(bool isNull) {
  if (isNull) _map.clear();
  _isNull = isNull;
}