CPDashboardButton class

A Dashboard button object for placement in a CarPlay dashboard.

Constructors

CPDashboardButton.new({required VoidCallback onPressed, required String image, List<String> subtitleVariants = const [], List<String> titleVariants = const [], String? darkImage})
Creates CPDashboardButton

Properties

darkImage String?
The dark image displayed on the dashboard button.
final
hashCode int
The hash code for this object.
no setterinherited
image String
The image displayed on the dashboard button.
final
onPressed VoidCallback
Fired when the user taps a dashboard button.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtitleVariants List<String>
The subtitle displayed on the dashboard button.
final
titleVariants List<String>
The title displayed on the dashboard button.
final

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