FlexPickerNullableStringExtensions extension
Extensions on String.
Included extensions are, toColorMaybeNull to convert a String to a Color. To capitalizeMaybeNull the first letter in a String and dotTailMaybeNull to get remaining string after first dot "." in a String.
- on
Properties
- capitalizeMaybeNull → String?
-
Capitalize the first letter in a string. If string is null, we get null
back.
no setter
- dotTailMaybeNull → String?
-
Return the string remaining in a string after the last "." in a String,
if there is no "." the string itself is returned. If string is null
we get null back.
no setter
- toColorMaybeNull → Color?
-
Returns toColorShortMaybeNull with
enableShortRGB
set to true.no setter
Methods
-
toColorShortMaybeNull(
bool enableShortRGB) → Color? - Convert a HEX value encoded (A)RGB string to a Dart Color.