getFlutterBinChannel function

Future<String> getFlutterBinChannel()

Get flutter channel. (dev, beta, master, stable)

Returns null if flutter cannot be found in the path

Implementation

Future<String> getFlutterBinChannel() async =>
    (await getFlutterBinInfo())?.channel;