PropError class
Errors thrown due to a value within UiComponent2.props being set incorrectly.
Constructors
- PropError(String propName, [String message = ''])
- Create a new PropError, with the given propName and optional message.
- PropError.combination(String propName, String? prop2Name, [String message = ''])
- Create a new PropError that signifies the propName and prop2Name are in conflict.
- PropError.required(String propName, [String message = ''])
- Create a new PropError that signifies the given propName is required to be set.
- PropError.value(dynamic invalidValue, String propName, [String message = ''])
- Create a new PropError that signifies the given propName is set to an invalidValue.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- invalidValue → dynamic
-
final
- message → String
-
final
- prop2Name → String?
-
final
- propName → String
-
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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- combinationPrefix → const String
- defaultPrefix → const String
- invalidPrefix → const String
- requiredPrefix → const String