watchConfig method

Future<String?> watchConfig(
  1. String configPath,
  2. void callback(
    1. FileChange
    )
)

Watch for config file changes (~/.neomage/settings.json, etc.).

Implementation

Future<String?> watchConfig(
  String configPath,
  void Function(FileChange) callback,
) async {
  return watchFile(configPath, callback);
}