Utils class Null safety

Static Class containing various utility functions. Can be called without calling a constructor.

Constructors

Utils()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

checkIfDay(TextEditingController textEditingController) String?
Checks if the Value of a TextEditingController is a number within the interval 0, 31.
checkIfEmpty(TextEditingController textEditingController) String?
Checks if the value of a given TextEditingController is empty. Used for the errortext on TextField.
checkIfEmptyOrEqualTo(TextEditingController textEditingController, String compareString) String?
Checks if the Value of a TextEditingController is empy or equal to a given string compareString.
checkIfLongerThan(TextEditingController textEditingController, int minLength) String?
Checks if the Value of a TextEditingController is longer than minLength.
checkIfMonth(TextEditingController textEditingController) String?
Checks if the Value of a TextEditingController is a number within the interval 0, 12.
checkIfYear(TextEditingController textEditingController) String?
Checks if the Value of a TextEditingController is a number within smaller than the current year.
compressImage(Uint8List pic, Function callback) → void
compress an Image pic and pass it to a callback.