getValueOrNull method

String? getValueOrNull({
  1. bool trim = false,
})

Implementation

String? getValueOrNull({bool trim = false}) {
  var value = getValue();
  if (trim) value = value.trim();
  return value.isEmpty ? null : value;
}