CPTextButton class

A button object for placement in a point of interest or information template.

Constructors

CPTextButton({required String title, CPTextButtonStyles style = CPTextButtonStyles.normal, required dynamic onPress()})
Creates CPTextButton with a title, style and handler.

Properties

hashCode int
The hash code for this object.
no setterinherited
onPress → dynamic Function()
Fired when the user taps a text button.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style CPTextButtonStyles
The style to use when displaying the button. Default is CPTextButtonStyles.normal
final
title String
The title displayed on the bar button.
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