ArnaHelpers class
Helper functions
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
-
hasContent(
String? text) → bool - Whether the text has content or not.
-
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
-
colorFromHex(
String hex) → Color - Get color from hex.
-
copyToClipboard(
String text) → Future< void> - Copy text to clipboard.
-
degreesToRadians(
double degrees) → double - Convert degrees to dadians.
-
deviceHeight(
BuildContext context) → double - Get device height.
-
deviceWidth(
BuildContext context) → double - Get device width.
-
dismissKeyboard(
BuildContext context) → void - Dismiss the keyboard
-
dynamicMapToModel<
T> (dynamic value, T f(Map< String, dynamic> e)) → T? - Convert dynamic map to model.
-
dynamicToBool(
dynamic value) → bool? - Convert dynamic to bool.
-
dynamicToDateTime(
dynamic value) → DateTime? - Convert dynamic to DateTime.
-
dynamicToDouble(
dynamic value) → double? - Convert dynamic to double.
-
dynamicToInt(
dynamic value) → int? - Convert dynamic to int.
-
dynamicToMap<
K, V> (dynamic value) → Map< K, V> ? - Convert dynamic to Map.
-
dynamicToMapStringDynamic(
dynamic value) → Map< String, dynamic> ? - Convert dynamic to Map<String, dynamic>.
-
dynamicToString(
dynamic value) → String? - Convert dynamic to string.
-
isCompact(
BuildContext context) → bool - Is device compact?
-
isEmail(
String text) → bool - Whether the text is email or not.
-
isExpanded(
BuildContext context) → bool - Is device expanded?
-
isFirstButton(
int index, int length, TextDirection textDirection) → bool - Determines if this is the first child that is being laid out.
-
isLastButton(
int index, int length, TextDirection textDirection) → bool - Determines if this is the last child that is being laid out.
-
isMedium(
BuildContext context) → bool - Is device medium?
-
isUrl(
String text) → bool - Whether the text is url or not.
-
pasteFromClipboard(
) → Future< String?> - Paste text from clipboard.
- Specifies the style of system bottom navigation bar.
-
setOrientation(
List< DeviceOrientation> orientations) → Future<void> - Specifies the set of orientations the application interface can be displayed in.