@@ -27,6 +27,10 @@ import 'message_codecs.dart';
27
27
/// The logical identity of the channel is given by its name. Identically named
28
28
/// channels will interfere with each other's communication.
29
29
///
30
+ /// All [BasicMessageChannel] s provided by the Flutter framework guarantee FIFO
31
+ /// ordering. Applications can assume messages sent via a built-in
32
+ /// [BasicMessageChannel] are delivered in the same order as they're sent.
33
+ ///
30
34
/// See: <https://flutter.dev/platform-channels/>
31
35
class BasicMessageChannel <T > {
32
36
/// Creates a [BasicMessageChannel] with the specified [name] , [codec] and [binaryMessenger] .
@@ -95,6 +99,13 @@ class BasicMessageChannel<T> {
95
99
/// The logical identity of the channel is given by its name. Identically named
96
100
/// channels will interfere with each other's communication.
97
101
///
102
+ /// {@template flutter.services.method_channel.FIFO}
103
+ /// All [MethodChannel] s provided by the Flutter framework guarantee FIFO
104
+ /// ordering. Applications can assume method calls sent via a built-in
105
+ /// [MethodChannel] are received by the platform plugins in the same order as
106
+ /// they're sent.
107
+ /// {@endtemplate}
108
+ ///
98
109
/// See: <https://flutter.dev/platform-channels/>
99
110
class MethodChannel {
100
111
/// Creates a [MethodChannel] with the specified [name] .
@@ -412,6 +423,8 @@ class MethodChannel {
412
423
///
413
424
/// When [invokeMethod] fails to find the platform plugin, it returns null
414
425
/// instead of throwing an exception.
426
+ ///
427
+ /// {@macro flutter.services.method_channel.FIFO}
415
428
class OptionalMethodChannel extends MethodChannel {
416
429
/// Creates a [MethodChannel] that ignores missing platform plugins.
417
430
const OptionalMethodChannel (String name, [MethodCodec codec = const StandardMethodCodec (), BinaryMessenger ? binaryMessenger])
0 commit comments