UrlStatus class
The URL's parsed and queried status.
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
- UrlStatus({required bool isInvalid, required bool isSecure, required bool exists})
- UrlStatus.invalid()
Properties
- exists → bool
-
Whether the URL exists and responds with an OK status code.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInvalid → bool
-
Whether the URL can be parsed and is valid.
final
- isSecure → bool
-
Whether the URL uses HTTPS.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getProblemCode(
) → String? -
Returns a brief problem code that can be displayed when linking to it.
Returns
null
when URL has no problem. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited