getDisplayInfo method

  1. @override
Future<DuoDisplayInfo?> getDisplayInfo()
override

Legacy display method retained for platform fakes and older adapters. New implementations should also implement DuoFlexDataPlatform to expose the strongly typed display model and the rest of the current API.

Implementation

@override
Future<DuoDisplayInfo?> getDisplayInfo() async {
  final value = await _invoke('getDisplayInfo');
  return value == null
      ? null
      : _decode(
          () => DuoDisplayInfo.fromMap(_responseMap(value, 'getDisplayInfo')),
          'getDisplayInfo',
        );
}