SmartFileMerger class

High-level smart merge API used by sync / upgrade / vertical slices.

Constructors

SmartFileMerger()
const

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

merge({required String existing, required String regionId, required String regionBody, Iterable<String> imports = const [], String? insertBeforePattern}) String
Replace a managed region and optionally merge imports.
mergeGeneratedFile({required String? existing, required String fullGenerated, required List<String> regionIds}) String
Writes fullGenerated only when the file does not exist; otherwise merges every known region present in fullGenerated into existing.
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