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, Widget? child, BorderSide? shape, FocusNode? focusNode})
const

Properties

borderRadius double
The corner radius of the button.
final
child Widget?
The button's label.
final
color Color?
The button's fill color.
final
flex int
The flex factor to use for the button.
final
focusNode FocusNode?
An optional focus node to use as the focus node for this item.
final
hashCode int
The hash code for this object.
no setterinherited
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.
no setterinherited
shape BorderSide?
border settings
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

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