LocalExtensions class

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

createPath(String path, [Iterable? segments]) String
hasMatch(String? value, String pattern) bool
isCnpj(String cnpj) bool
isCpf(String cpf) bool
Checks if the cpf is valid.
isNull(dynamic value) bool
Checks if data is null.
isNullOrBlank(dynamic value) bool
In dart2js (in flutter v1.17) a var by default is undefined. Use this only if you are in version <- 1.17. So we assure the null type in json convertions to avoid the "value":value==null?null:value; someVar.nil will force the null type if the var is null or undefined. nil taken from ObjC just to have a shorter sintax. Checks if data is null or blank (empty or only contains whitespace).
isNum(String value) bool
Checks if string is int or double.