setChannel method

  1. @visibleForTesting
void setChannel(
  1. MethodChannel newChannel
)

Set the MethodChannel used to communicate with the engine text processing feature.

This is only meant for testing within the Flutter SDK.

Implementation

@visibleForTesting
void setChannel(MethodChannel newChannel) {
  assert(() {
    _processTextChannel = newChannel;
    return true;
  }());
}