A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://api.flutter.dev/flutter/services/OptionalMethodChannel-class.html below:

OptionalMethodChannel class - services library

OptionalMethodChannel class

A MethodChannel that ignores missing platform plugins.

When invokeMethod fails to find the platform plugin, it returns null instead of throwing an exception.

All MethodChannels provided by the Flutter framework guarantee FIFO ordering. Applications can assume method calls sent via a built-in MethodChannel are received by the platform plugins in the same order as they're sent.

Inheritance
Available extensions
Constructors
OptionalMethodChannel.new(String name, [MethodCodec codec = const StandardMethodCodec(), BinaryMessenger? binaryMessenger])
Creates a MethodChannel that ignores missing platform plugins.

const

Properties
binaryMessenger BinaryMessenger
The messenger which sends the bytes for this channel.

no setterinherited

codec MethodCodec
The message codec used by this channel, not null.

finalinherited

hashCode int
The hash code for this object.

no setterinherited

name String
The logical channel on which communication happens, not null.

finalinherited

runtimeType Type
A representation of the runtime type of the object.

no setterinherited

Methods
checkMockMethodCallHandler(Object? handler) bool

Available on MethodChannel, provided by the TestMethodChannelExtension extension

Shim for TestDefaultBinaryMessenger.checkMockMessageHandler.
invokeListMethod<T>(String method, [dynamic arguments]) Future<List<T>?>
An implementation of invokeMethod that can return typed lists.

inherited

invokeMapMethod<K, V>(String method, [dynamic arguments]) Future<Map<K, V>?>
An implementation of invokeMethod that can return typed maps.

inherited

invokeMethod<T>(String method, [dynamic arguments]) Future<T?>
Invokes a method on this channel with the specified arguments.

override

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.

inherited

setMethodCallHandler(Future handler(MethodCall call)?) → void
Sets a callback for receiving method calls on this channel.

inherited

setMockMethodCallHandler(Future? handler(MethodCall call)?) → void

Available on MethodChannel, provided by the TestMethodChannelExtension extension

Shim for TestDefaultBinaryMessenger.setMockMethodCallHandler.
toString() String
A string representation of this object.

inherited

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

inherited


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4