available method

  1. @override
Future<bool> available()
override

Whether this host can effect frames — the OS version, the GPU profile and the installed bridge as well as the platform family.

Implementation

@override
Future<bool> available() async {
  _requireSupported();
  final result = await _invoke('available');
  if (result is! bool) {
    throw _invalid('result', 'expected bool, got ${result.runtimeType}');
  }
  if (result) _subscribe();
  return result;
}