GridButtonItem class

The data for a cell of a GridButton.

Constructors

GridButtonItem({Key key, String title, Color color, TextStyle textStyle, dynamic value, int flex: 1, double borderRadius: 0})
const

Properties

borderRadius → double
The corner radius of the button.
final
color Color
The button's fill color.
final
flex → int
The flex factor to use for the button.
final
key Key
The key for the button.
final
textStyle TextStyle
If non-null, the style to use for button's text.
final
title → String
The text to display on the button.
final
value → dynamic
The value for the GridButton.onPressed callback parameter. If the value is null, the callback will use the title instead.
final
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited