OneButtonViewModel class
Constructors
- OneButtonViewModel({OneButtonSize size = OneButtonSize.lg, OneButtonHierarchy hierarchy = OneButtonHierarchy.primary, String? text, TextAlign alignment = TextAlign.center, String? leadingSVG, String? leadingImage, dynamic leadingIcon, dynamic trailingIcon, bool isFocused = false, bool isLoading = false, bool isDisabled = false, bool isActive = false, dynamic onTap()?, bool fullWidth = false, bool textFullWidth = false})
-
const
Properties
- alignment → TextAlign
-
final
- fullWidth → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hierarchy → OneButtonHierarchy
-
final
- isActive → bool
-
final
- isDisabled → bool
-
final
- isFocused → bool
-
final
- isLoading → bool
-
final
- leadingIcon → dynamic
-
final
- leadingImage → String?
-
final
- leadingSVG → String?
-
final
- onTap → dynamic Function()?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → OneButtonSize
-
final
- text → String?
-
final
- textFullWidth → bool
-
final
- trailingIcon → dynamic
-
final
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