ULinkResponse class
Response from creating or resolving a ULink
Constructors
-
ULinkResponse({required bool success, String? url, String? error, Map<
String, dynamic> ? data}) - Creates a new ULink response
- ULinkResponse.error(String error)
-
Creates an error response
factory
-
ULinkResponse.fromJson(Map<
String, dynamic> json) -
Creates a response from JSON
factory
-
ULinkResponse.fromMap(Map<
String, dynamic> map) -
Creates a response from a Map (for platform channel)
factory
-
ULinkResponse.success(String url, [Map<
String, dynamic> ? data]) -
Creates a successful response
factory
Properties
-
data
→ Map<
String, dynamic> ? -
Raw response data
final
- error → String?
-
Error message if unsuccessful
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- success → bool
-
Whether the operation was successful
final
- url → String?
-
The generated URL (for createLink) or resolved URL (for resolveLink)
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts the response to a Map
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited