MapboxSearchResult<S> class sealed

Abstract class representing the result of a Mapbox search

Implementers

Constructors

MapboxSearchResult.failure(int statusCode, String? message, String? error)
Factory constructor to create a failure result
factory
MapboxSearchResult.success(S value)
Factory constructor to create a success result
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isFailure bool
Getter to check if the result is a failure
no setter
isSuccess bool
Getter to check if the result is a success
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fold<R>({required FutureOr<R> onSuccess(S value), required FutureOr<R> onFailure(int statusCode, String? message, String? error)}) FutureOr<R>
Method to handle both success and failure cases
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