@@ -27,6 +27,10 @@ import 'message_codecs.dart';
2727/// The logical identity of the channel is given by its name. Identically named
2828/// channels will interfere with each other's communication.
2929///
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+ ///
3034/// See: <https://flutter.dev/platform-channels/>
3135class BasicMessageChannel <T > {
3236 /// Creates a [BasicMessageChannel] with the specified [name] , [codec] and [binaryMessenger] .
@@ -95,6 +99,13 @@ class BasicMessageChannel<T> {
9599/// The logical identity of the channel is given by its name. Identically named
96100/// channels will interfere with each other's communication.
97101///
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+ ///
98109/// See: <https://flutter.dev/platform-channels/>
99110class MethodChannel {
100111 /// Creates a [MethodChannel] with the specified [name] .
@@ -412,6 +423,8 @@ class MethodChannel {
412423///
413424/// When [invokeMethod] fails to find the platform plugin, it returns null
414425/// instead of throwing an exception.
426+ ///
427+ /// {@macro flutter.services.method_channel.FIFO}
415428class OptionalMethodChannel extends MethodChannel {
416429 /// Creates a [MethodChannel] that ignores missing platform plugins.
417430 const OptionalMethodChannel (String name, [MethodCodec codec = const StandardMethodCodec (), BinaryMessenger ? binaryMessenger])
0 commit comments