channel method

MethodChannel channel(
  1. int id
)

Accesses the MethodChannel associated to the passed id.

Implementation

MethodChannel channel(int id) {
  final MethodChannel? channel = _channels[id];
  if (channel == null) {
    throw Exception("Unknown video player ID: $id");
  }
  return channel;
}