CPGridButton class

A grid button object displayed on a grid template.

Constructors

CPGridButton({required List<String> titleVariants, required String image, required dynamic onPress()})

Properties

hashCode int
The hash code for this object.
no setterinherited
image String
Image asset path in pubspec.yaml file. For example: images/flutter_logo.png
final
onPress → dynamic Function()
Fired after the user taps the button.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
titleVariants List<String>
An array of title variants for the button. When the system displays the button, it selects the title that best fits the available screen space, so arrange the titles from most to least preferred when creating a grid button. Also, localize each title for display to the user, and be sure to include at least one title in the array.
final
uniqueId String
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited