safeNullable method
Implementation
String? safeNullable(String key, {String? defaultValue}) {
if (this[key] != null) {
final stringValue = this[key].toString();
return stringValue.isEmpty || stringValue == 'null' ? defaultValue : stringValue;
}
return defaultValue;
}