CPBarButton class
A button object for placement in a navigation bar.
Constructors
- CPBarButton.new({required OnClickEvents onClickEvent, CPBarButtonStyles style = CPBarButtonStyles.rounded, bool isEnabled = true, String? image, String? title})
- Creates CPBarButton
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- image → String?
-
The image displayed on the bar button.
final
- isEnabled → bool
-
The enabled state of the bar button.
final
- onClickEvent → OnClickEvents
-
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
Methods
-
copyWith(
{String? title, String? image, bool? isEnabled, CPBarButtonStyles? style, OnClickEvents? onClickEvent}) → CPBarButton - Creates a copy of this object but with the given fields replaced with new values.
-
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