isNull property

  1. @override
bool get isNull
override

get if list is currently marked as null. (toJson will convert to null).

Implementation

@override

/// get if list is currently marked as null. (toJson will convert to null).
bool get isNull => _isNull;
set isNull (bool isNull)

Setting isNull to true will clear the list

Implementation

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