NativeLensCustomTaskResult class

Device readiness result for a developer-defined NativeLens task.

Constructors

NativeLensCustomTaskResult({required String taskName, required String riskLevel, required String severity, required bool canContinue, required List<String> reasons, required List<String> recommendations, required String userMessage, required String developerMessage, required int analyzedAtMillis, List<String> requiredCapabilities = const <String>[], List<String> missingCapabilities = const <String>[], List<String> availableCapabilities = const <String>[]})
Creates a custom task readiness result.
const
NativeLensCustomTaskResult.fromMap(Map<Object?, Object?> map)
Creates a custom task result from a map using stable field names.
factory

Properties

analyzedAtMillis → int
Analysis timestamp in milliseconds since epoch.
final
availableCapabilities → List<String>
Required or preferred capabilities currently available on the device.
final
canContinue → bool
Whether the task can continue under current device conditions.
final
developerMessage → String
Diagnostic message suitable for logs or developer tooling.
final
hashCode → int
The hash code for this object.
no setterinherited
missingCapabilities → List<String>
Required or preferred capabilities that are unavailable or unstable.
final
reasons → List<String>
Human-readable reasons for the readiness result.
final
recommendations → List<String>
Suggested developer or product actions for the readiness result.
final
requiredCapabilities → List<String>
Capabilities required by the custom task.
final
riskLevel → String
Current risk level. Expected values are low, medium, and high.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
severity → String
User-facing severity. Expected values are info, warning, and critical.
final
taskName → String
Developer-defined task name.
final
userMessage → String
Short message suitable for showing to an app user.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, Object>
Serializes the result to a map using stable field names.
toString() → String
A string representation of this object.
override

Operators

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