GridButtonItem class

The data for a cell of a GridButton.

Constructors

GridButtonItem({Key key, String title, Color color, TextStyle textStyle, dynamic value, dynamic longPressValue, 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
hashCode int
The hash code for this object. [...]
read-only, inherited
key Key
The key for the button.
final
longPressValue → dynamic
The value for the GridButton.onPressed callback parameter. If the longPressValue is null, the callback will fallback to the value set for GridButton.onPressed if value is null the callback will use the title instead.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
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

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 ==(Object other) bool
The equality operator. [...]
inherited