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)
      }
  );
  if (res == null) throw AssertionError("received null result from platform method hasNext");
  return jsonDecode(res);
}