isLiveTextInputAvailable static method

Future<bool> isLiveTextInputAvailable()

Returns true if the Live Text input feature is available on the current device.

Implementation

static Future<bool> isLiveTextInputAvailable() async {
  final bool supportLiveTextInput =
      await SystemChannels.platform.invokeMethod('LiveText.isLiveTextInputAvailable') ?? false;
  return supportLiveTextInput;
}