INNER CODE UNIT · Dart

base64String

SimformSolutionsPvtLtd/chatview · lib/src/extensions/extensions.dart:130

      final base64String = substring(startIndex + 7);
      bytes = base64Decode(base64String);
    } catch (_) {}

    return bytes == null ? null : MemoryImage(bytes);
  }

  bool get isAllEmoji {
    final unEmojified = _emojiParser.parseEmojis(this);
    return runes.length == unEmojified.length;
  }

  bool get isUrl {
    final uri = Uri.tryParse(this);
    return uri != null &&
        uri.isAbsolute &&
        (uri.scheme == httpScheme || uri.scheme == httpsScheme);
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…