PadButtonItem class

Model of one pad button

Constructors

PadButtonItem({@required int? index, String? buttonText, Image? buttonImage, Icon? buttonIcon, Color? backgroundColor = Colors.white54, Color? pressedColor = Colors.lightBlueAccent, List<Gestures> supportedGestures = const [Gestures.tap]})
const

Properties

backgroundColor Color?
backgroundColor: color of button in default state
final
buttonIcon Icon?
buttonIcon is optional; an icon displayed inside the button optional parameter => needs null-aware operator
final
buttonImage Image?
buttonImage is optional; image displayed inside button optional => needs null-aware operator
final
buttonText String?
buttonText is optional; the text to be displayed inside the button. Omitted if buttonImage is set. Default vlaue is an empty string.
final
hashCode int
The hash code for this object.
no setterinherited
index int?
index required parameter, the key to recognize button instance must be declared with null-aware operator (?)
final
pressedColor Color?
pressedColor: color of button when pressed
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportedGestures List<Gestures>
supportedGestures: optional; list of gestures for button will call the callback PadButtonsView.padButtonPressedCallback.
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