MethodChannelTechproCar class
An implementation of TechproCarPlatform that uses a method channel.
- Inheritance
-
- Object
- PlatformInterface
- TechproCarPlatform
- MethodChannelTechproCar
Constructors
- MethodChannelTechproCar()
- Creates the platform that talks to the native code.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to talk to the native side.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dismissAlert(
) → Future< void> -
Closes the alert, if one is shown.
override
-
getConnection(
) → Future< Map< String, Object?> > -
Returns the current connection, in the same format as the
connectionChangedevent.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pop(
) → Future< void> -
Removes the top screen.
override
-
popToRoot(
) → Future< void> -
Removes every screen except the root.
override
-
push(
Map< String, Object?> template) → Future<void> -
Shows
templateon top of the current screen.override -
setEventHandler(
CarEventHandler? handler) → void -
Sets the function that receives native events, or
nullto stop.override -
setRoot(
Map< String, Object?> template) → Future<void> -
Replaces the whole screen stack with
template.override -
showAlert(
Map< String, Object?> alert) → Future<void> -
Shows
alerton top of the current screen.override -
toString(
) → String -
A string representation of this object.
inherited
-
update(
Map< String, Object?> template) → Future<void> -
Replaces the screen whose id matches
templatein place.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited