TestEnvironment class final

Constructors

TestEnvironment({bool ignorePlatformMessages = false, bool forceTestFonts = false, bool disableFontFallbacks = false, bool keepSemanticsDisabledOnUpdate = false, bool defaultToTestUrlStrategy = false})
const
TestEnvironment.flutterTester()
const
TestEnvironment.production()
const

Properties

defaultToTestUrlStrategy → bool
When true, a TestUrlStrategy will be used instead of the default URL strategy.
final
disableFontFallbacks → bool
When true, the font fallback system will be disabled.
final
forceTestFonts → bool
When true, all text will be laid out and rendered using test fonts.
final
hashCode → int
The hash code for this object.
no setterinherited
ignorePlatformMessages → bool
When true, the ui.PlatformDispatcher will ignore all platform messages.
final
keepSemanticsDisabledOnUpdate → bool
When true, semantics will NOT be automatically enabled when a semantics update is received by ui.FlutterView.updateSemantics.
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.
inherited

Operators

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

Static Properties

instance → TestEnvironment
no setter

Static Methods

setUp(TestEnvironment testEnvironment) → void
tearDown() → void