InvalidProbability class

Error of an invalid probability outside the range of 0 to 1.

Inheritance

Constructors

InvalidProbability(num probability, [String? name])

Properties

hashCode int
The hash code for this object.
no setterinherited
invalidValue → dynamic
The invalid value.
finalinherited
message → dynamic
Message describing the problem.
finalinherited
name String?
Name of the invalid argument, if available.
finalinherited
probability num
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
The stack trace at the point where this error was first thrown.
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.
inherited

Operators

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

Static Methods

check(num probability) → void