BlueConicNativeResult class

Represents a unified result from native platform methods. All native methods now return success: bool, data: any?, error: string?

Constructors

BlueConicNativeResult.fromNative(dynamic nativeResult)
Parses the native response format: success, data, error
factory

Properties

data → dynamic
final
error String?
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
final

Methods

getDataOrDefault<T>(T defaultValue) → T
Returns the data if successful, otherwise returns the provided default value
getDataOrThrow<T>() → T
Returns the data if successful, otherwise throws an exception
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