load static method

Configuration? load(
  1. String fileName
)

Load configuration from file

Implementation

static Configuration? load(String fileName) {
  final file = File(fileName);
  if (!file.existsSync()) {
    return null;
  }
  final Map<String, dynamic> jsonMap = jsonDecode(file.readAsStringSync());
  return Configuration._fromJson(jsonMap);
}