boolConverter property
Implementation
static final boolConverter = StringToTypeConverter<bool>(
converter: (rawValue, cantConvert) {
if (rawValue == null) {
return cantConvert('Input can not be null', rawValue: rawValue, key: GladeErrorKeys.valueIsNull);
}
return bool.tryParse(rawValue) ?? cantConvert('Can not convert', rawValue: rawValue);
},
converterBack: (rawInput) => rawInput.toString(),
);