splashURL method

String? splashURL({
  1. String format = "webp",
  2. int size = 128,
})

URL to guild's splash. If guild doesn't have splash it returns null.

Implementation

String? splashURL({String format = "webp", int size = 128}) {
  if (this.splashHash != null) {
    return "https://cdn.${Constants.cdnHost}/splashes/$id/$splashHash.$format?size=$size";
  }

  return null;
}