validate property
Implementation
@override
String? get validate {
if (flags == null) return super.validate;
if (flags is! int &&
flags is! FlagsInterface &&
flags is! List<int> &&
flags is! List<FlagsInterface>) {
return "flags must be int, List<int>, FlagsInterface or List<FlagsInterface>";
}
return super.validate;
}