CustomTraitAssert class abstract

Customizable assert class.

This class can be used as base for custom trait assert classes.

Inheritance

Constructors

CustomTraitAssert.new({String? traitId})
Creates an instance of CustomTraitAssert.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isRelative bool
Returns whether this trait is relative to another trait.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
traitId String?
The target trait ID.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
test(WidgetTrait trait, Rect bounds, Size screenSize, [WidgetTrait? compareTrait, Rect? compareBounds]) → void
Implements the assertion logic.
toString() String
A string representation of this object.
inherited

Operators

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