CPBarButton class

A button object for placement in a navigation bar.

Constructors

CPBarButton({required String title, CPBarButtonStyles style = CPBarButtonStyles.rounded, required dynamic onPress()})
Creates CPBarButton 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 bar button.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style CPBarButtonStyles
The style to use when displaying the button. Default is CPBarButtonStyles.rounded
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