operator [] method

FlutterSdkRelease operator [](
  1. String channelName
)

Returns channel by name

Implementation

FlutterSdkRelease operator [](String channelName) {
  if (channelName == 'beta') return beta;
  if (channelName == 'dev') return dev;
  if (channelName == 'stable') return stable;
  throw Exception('Not a valid channel $channelName');
}