CodeRewriter class
Rewrites Dart code to use shard_i18n
Constructors
- CodeRewriter({required MigrationConfig config, bool verbose = false})
Properties
- config → MigrationConfig
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- verbose → bool
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rewriteFile(
{required String filePath, required List< DetectedString> stringsToExtract, required bool dryRun}) → Future<String?> - Rewrite a single file
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited