size method Null safety

int size()

Returns the number of elements in an array or object, returns 0 for all other types.

Implementation

int size() => 0;