InjectMainDartImport class final

Injects an import statement specifically into lib/main.dart.

Equivalent to InjectImport but targets main.dart explicitly and is distinguished in the dry-run output so log filtering can identify main.dart mutations as a group.

Example

InjectMainDartImport(importStatement: "import 'package:analytics/analytics.dart';")
Inheritance

Constructors

InjectMainDartImport({required String importStatement})
Creates an InjectMainDartImport operation.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
importStatement String
The full import statement to inject into lib/main.dart.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

describe() String
Returns a human-readable dry-run line for this operation.
override
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