mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 00:05:16 +00:00
Fix empty fields
This commit is contained in:
@ -4,3 +4,7 @@
|
||||
|
||||
/// Casting helper
|
||||
T cast<T>(dynamic val) => val is T ? val : null;
|
||||
|
||||
/// Turn null and "null" into ""
|
||||
String nullToEmpty(String input) =>
|
||||
input == null || input == "null" ? "" : input;
|
||||
|
Reference in New Issue
Block a user