length property Null safety

int length

The length of the string value.

Returns 0 if the string value is null

Implementation

int get length => _value?.length ?? 0;