isValid property

bool get isValid

Check if it's a valid record

Implementation

bool get isValid => name.isNotEmpty && type > 0 && data.isNotEmpty;