DevicePlatform class
An implementation of IDevicePlatform that uses method channels.
- Implemented types
Constructors
- DevicePlatform({required MethodChannel channel})
Properties
-
entrypoints
→ Map<
String, bool> -
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
DisposeRequest request) → Future< void> -
.
override
-
init(
{required InitRequest request, required CallBacksController controller, required IPlatformEntrypoint instanceFactory({required CallBacksController callBacksController, required EventChannel eventChannel, required String id, required String mainChannelId, required MethodChannel methodChannel})}) → Future< IPlatformEntrypoint> -
Instantiates a new channel on host.
Parameters:
instanceFactory
- Gives us the opportunitty to intercept and overrides some properties. Throws: ChannelInvokeException - When there's some problem with native communication.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited