Generates Flutter integration-test harness source files that replay
recorded HTTP traffic and platform-channel calls captured by
flight_recorder.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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 Methods
-
detectFramework(
String pubspecContent) → DiFramework -
Tries to detect which DI framework is in use by scanning
pubspecContentfor well-known package names in thedependenciesordev_dependenciesblocks. -
generateHarness(
{required DiFramework framework, required String appWidgetConstructor, required List< String> detectedChannels, required List<String> detectedHttpHosts}) → String -
Generates a complete
test/flight_harness.dartfile as a Dart source string. -
harnessImports(
DiFramework framework) → List< String> - Returns the import lines required at the top of the generated harness.