listSourceText method

Future<ListModelResponse<SourceText>> listSourceText({
  1. String? source,
  2. String? key,
  3. int limit = 50,
  4. int skip = 0,
})

List all source texts. Parameters

  • source filter by source content.
  • key filter by key.
  • limit limit the number of results. (max 50)
  • skip skip the first n results.

Implementation

Future<ListModelResponse<SourceText>> listSourceText(
    {String? source, String? key, int limit = 50, int skip = 0}) async {
  APIHttpResponse response =
      await httpClient.get('/translate/source-text/', query: {
    if (source != null) 'source': source,
    if (key != null) 'key': key,
    'limit': limit.toString(),
    'skip': skip.toString(),
  });

  return ListModelResponse.fromMap<SourceText>(response.data);
}