Unverified Commit 22406493 authored by Chris Evans's avatar Chris Evans Committed by GitHub

Add 'vm:keep-name' pragmas to platform channel classes (#131271)

Pragma will allow future proofing Dart snapshot utilities to work by preserving the names of important classes used in platform channel communication

@Hixie
parent 61fd11db
......@@ -30,6 +30,7 @@ abstract class MessageCodec<T> {
}
/// A command object representing the invocation of a named method.
@pragma('vm:keep-name')
@immutable
class MethodCall {
/// Creates a [MethodCall] representing the invocation of [method] with the
......
......@@ -246,6 +246,7 @@ class BasicMessageChannel<T> {
/// {@endtemplate}
///
/// See: <https://flutter.dev/platform-channels/>
@pragma('vm:keep-name')
class MethodChannel {
/// Creates a [MethodChannel] with the specified [name].
///
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment