next method

  1. @override
Future<List> next(
  1. String paginatedListIteratorId,
  2. @actualInt32 int limit
)
override

Implementation

@override
Future<List<dynamic>> next(String paginatedListIteratorId, @actualInt32 int limit) async {
  final res = await _methodChannel.invokeMethod<String>(
      'next',
      {
        "paginatedListIteratorId": paginatedListIteratorId,
        "limit": jsonEncode(limit)
      }
  ).catchError(convertPlatformException);
  if (res == null) throw AssertionError("received null result from platform method hasNext");
  return jsonDecode(res);
}