constructPageUrl method

String constructPageUrl(
  1. String baseUrl,
  2. bool dataSaver,
  3. String chapterHash,
  4. String filename,
)

Implementation

String constructPageUrl(
    String baseUrl, bool dataSaver, String chapterHash, String filename) {
  var dataMode = dataSaver ? 'data-saver' : 'data';
  return '$baseUrl/$dataMode/$chapterHash/$filename';
}