FormatUtils class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited
Static Properties
defaultLocale
↔ String
Default locale for valCurrency /valDecimal /valNumber when no
locale override is passed at the call site. Override once at startup
if the app needs a different default instead of touching every caller.
getter/setter pair
Static Methods
convertTextCurrencyToInt (String ? value )
→ int
formatBytes (int bytes , int decimals )
→ String
formatDuration (Duration duration )
→ String
inputDecimalFormatter ()
→ List <TextInputFormatter >
chỉ có phép nhập số, dấu thập phân và format thành phần ngàn
inputNumberFormatter ()
→ List <TextInputFormatter >
chỉ có phép nhập số và format thành phần ngàn
lblDecimal (double ? value , {String ? symbol , int ? digits })
→ String
valCurrency (double ? value , {String ? locale , String ? symbol })
→ String
valDateTime (String ? date , {String ? format })
→ String
valDateTimeRange (List <String > ? dateTimeRange )
→ String
valDecimal (double ? value , {String ? locale , int ? digits })
→ String
valNumber (int ? value , {String ? locale })
→ String