edit abstract method
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});