MethodChannelGamepad class

An implementation of GamepadPlatform that uses method channels.

Inheritance

Constructors

MethodChannelGamepad()

Properties

buttonEvents Stream<ButtonEvent>
A broadcast stream of events from a button of a gamepad.
no setteroverride
dpadEvents Stream<DpadEvent>
A broadcast stream of events from the dpad of a gamepad.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
joystickEvents Stream<JoystickEvent>
A broadcast stream of events from a joystick of a gamepad.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
triggerEvents Stream<TriggerEvent>
A broadcast stream of events from a trigger of a gamepad.
no setteroverride

Methods

blockControl(Enum control) Future<void>
A method to temporarily block control transmissions to a previously set internet address on the platform.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetAddress() Future<void>
A method to reset a previously set internet address on the platform.
override
resumeControl(Enum control, [bool safe = true]) Future<bool>
A method to either resume safe and therefore blocked or stopped control transmissions to a previously set internet address on the platform.
override
setAddress(InternetAddress connection) Future<void>
A method to set an internet address on the platform.
override
stopControl(Enum control) Future<void>
A method to completely stop control transmissions to a previously set internet address on the platform.
override
toString() String
A string representation of this object.
inherited
turnScreenOff() Future<bool>
A method to turn the screen's brightness of the device to lowest setting possible.
override
turnScreenOn() Future<bool>
A method to turn the screen's brightness of the device to the user's defaults.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

buttonChannel → const EventChannel
The event channel to receive button events from the native platform.
dpadChannel → const EventChannel
The event channel to receive dpad events from the native platform.
joystickChannel → const EventChannel
The event channel to receive joystick events from the native platform.
methodChannel → const MethodChannel
The method channel used to interact with the native platform.
triggerChannel → const EventChannel
The event channel to receive trigger events from the native platform.