WheelButton class
Model class for a wheel button, serves only as an encapsulation for each of the wheel buttons' properties Parameters: String text (Nullable) the text to display on the button IconData icon (Nullable) the icon to show on the button Color backgroundColor (Nullable) Button's color Function onPressed (Non-Null) the functionality for the button's onPressed callback Color foregroundColor (Nullable) the color for text/icon
Constructors
Properties
- backgroundColor → Color
-
Color backgroundColor (Nullable) Button's color
final
- foregroundColor → Color
-
Color foregroundColor (Nullable) the color for text/icon
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData?
-
IconData? icon (Nullable) the icon to show on the button
final
- iconSize → double?
-
Double iconSize (Nullable) icon size for the TextPainter
final
- image → Image?
-
Image? image (Nullable) pass an Image object to draw the image on the button
Should only use image parameter without text or icon parameters
final
- imageInfo ← ImageInfo?
-
no getter
- img → ImageInfo?
-
no setter
- onPressed → Function
-
Function onPressed (required) the functionality for the button's onPressed callback
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String?
-
String? text (Nullable) the text to display on the button
final
- textSize → double?
-
Double textSize (Nullable) text font size for the TextPainter
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