getReaderList method

  1. @override
Future<List<Reader>> getReaderList()
override

Implementation

@override
Future<List<Reader>> getReaderList() async {
  String data = await methodChannel.invokeMethod('getReaderList');
  List<Reader> readers =
      List<Reader>.from(json.decode(data).map((x) => Reader.fromJson(x)));
  return readers;
}