findScripts method

Future<List<Script>> findScripts({
  1. int? limit,
  2. int? offset,
})

List scripts

Parameters:

  • int limit: The number of scripts to return.
  • int offset: The offset for pagination.

Implementation

Future<List<Script>> findScripts({int? limit, int? offset}) async {
  return service
      .getScripts(limit: limit, offset: offset)
      .then((value) => value.scripts ?? <Script>[]);
}