StringToUriConverter class

A Converter that converts a String to a Uri.

Example:

final converter = StringToUriConverter();
print(converter.convert('https://example.com')); // prints: Uri.parse('https://example.com')
Implemented types

Constructors

StringToUriConverter(List<UriValidator> validators)
A Converter that converts a String to a Uri.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validators List<UriValidator>
List of validators for this converter
final

Methods

convert(String source) Uri
A generic interface for converting an input of type S into an output of type T.
override
getPackageName() String
Represents an abstraction for identifying the package that an object, resource, or service belongs to.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited