getFlutterBinVersion function

Future<Version?> getFlutterBinVersion()

Get flutter version.

Returns null if flutter cannot be found in the path

Implementation

Future<Version?> getFlutterBinVersion() async =>
    (await getFlutterBinInfo())?.version;