getImageUrl property

String? get getImageUrl

Implementation

String? get getImageUrl {
  if (this?.isNotEmpty == true) {
    if (this!.startsWith('http://') || this!.startsWith('https://')) return this;

    final id = this!.split('AttachmentIds=').lastOrNull ?? this!;

    return '${CoreEnviromentUtils.apiUrl}Files?AttachmentIds=$id';
  }

  return null;
}