getImageUrl method

String getImageUrl(
  1. {required String relativeUrl,
  2. required String mediaIdentifier}
)

Given a certain index, return the absolute URL of a Mokuro image.

Implementation

String getImageUrl({
  required String relativeUrl,
  required String mediaIdentifier,
}) {
  return Uri.decodeFull(
      Uri.parse(mediaIdentifier).resolve(relativeUrl).toString());
}