mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-05 16:08:46 +00:00
11 lines
204 B
Dart
11 lines
204 B
Dart
class StringConvert {
|
|
static String? writeEmptyToNull(String text) {
|
|
if (text.isEmpty) return null;
|
|
return text;
|
|
}
|
|
|
|
static String writeNullToEmpty(String? text) {
|
|
return text ?? '';
|
|
}
|
|
}
|