isEmptyValidator property

bool Function(T? data) isEmptyValidator
getter/setter pair

Checks if the data is empty.

Default behavior is to check if the data object is 'null'.

Possible alternate behavior could be set when the data is a list. In this case validator could check if the list does contain any item or not.

Implementation

bool Function(T? data) isEmptyValidator;