getFoldPosture method

  1. @override
Future<DuoFoldPosture> getFoldPosture()
override

Implementation

@override
Future<DuoFoldPosture> getFoldPosture() async {
  final value = await _invoke('getFoldPosture');
  if (value != null && value is! String) {
    throw PlatformException(
      code: 'invalid_response',
      message: 'Expected posture string.',
    );
  }
  return fromNativePosture(value as String?);
}