edit abstract method

Future<int> edit(
  1. String path, {
  2. required String oldString,
  3. required String newString,
  4. bool all = false,
})

Replace oldString with newString; returns the number of replacements (0 when not found, so callers can detect a no-op).

Implementation

Future<int> edit(String path,
    {required String oldString, required String newString, bool all = false});