ButtonStyle class
Style for Button Widget - WidgetType.button
- Inheritance
-
- Object
- WidgetStyle
- ButtonStyle
Constructors
- ButtonStyle({required String backgroundColor, required int fontSize})
- ButtonStyle Constructor
-
ButtonStyle.fromJson(Map<
String, dynamic> json) -
Get ButtonStyle from Json Map
factory
Properties
- backgroundColor ↔ String
-
Background color for the widget.
getter/setter pairinherited
- fontSize ↔ int
-
Font Size for Button Text
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Convert WidgetStyle to Json Map
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited