StringExtension extension

on

Methods

addPrefix(String prefix) String

Available on String, provided by the StringExtension extension

If this string starts with the given prefix, returns this string. Otherwise, returns a copy of this string after adding the prefix.
ifBlank(String? defaultValue()) String?

Available on String, provided by the StringExtension extension

iso8601ToDate() DateTime?

Available on String, provided by the StringExtension extension

queryParameters() Map<String, String>

Available on String, provided by the StringExtension extension

substringAfter(String delimiter) String

Available on String, provided by the StringExtension extension

substringBefore(String? separator) String

Available on String, provided by the StringExtension extension

takeWhile(bool predicate(String)) String

Available on String, provided by the StringExtension extension

Returns a string containing the first characters that satisfy the given predicate.
toBooleanOrNull() bool?

Available on String, provided by the StringExtension extension

toByteData() ByteData

Available on String, provided by the StringExtension extension

toJsonArrayOrNull() List?

Available on String, provided by the StringExtension extension

toJsonOrNull() Map<String, dynamic>?

Available on String, provided by the StringExtension extension

toUrlOrNull({Uri? context}) Uri?

Available on String, provided by the StringExtension extension