ListElements class
A class that represents an element with an icon, text, and a callback function.
Constructors
- ListElements(String text, Widget icon, Function callBack)
-
Creates a
ListElementsinstance with the provided text, icon, and callback.const -
ListElements.fromJson(Map<
String, dynamic> json) -
Creates a
ListElementsinstance from a JSON object.factory
Properties
- callBack → Function
-
A callback function to be executed when this element is interacted with.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Widget
-
The icon to display for this element.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
The text to display for this element.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the
ListElementsinstance into a JSON object. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited