NullCheckResult class
Result of null safety verification for a single dereference.
Constructors
- NullCheckResult({required NullDereference dereference, required bool isSafe, required bool isDefinitelyNull, NullabilityDomain? nullability, required String reason})
Properties
- dereference → NullDereference
-
The dereference being checked.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDefinitelyNull → bool
-
Whether the dereference is definitely null (will throw).
final
- isSafe → bool
-
Whether the dereference is provably safe (non-null).
final
- isUnknown → bool
-
Unknown: neither provably safe nor definitely null.
no setter
- nullability → NullabilityDomain?
-
The nullability state at this point.
final
- reason → String
-
Human-readable reason for the result.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited