methodChannel property

  1. @visibleForTesting
MethodChannel methodChannel
final

The method channel used to interact with the native platform.

This channel is used for bidirectional communication between Flutter and Android. The channel name 'android_glide_view' must match the channel name used in the Android implementation (AndroidGlideViewPlugin.kt).

The @visibleForTesting annotation allows this field to be accessed in tests for verification and mocking purposes.

Usage:

  • Flutter can invoke methods on this channel to communicate with Android
  • Android can send results back through this channel
  • The channel handles serialization/deserialization of data automatically

Implementation

@visibleForTesting
final methodChannel = const MethodChannel('android_glide_view');