Settings.fromConfig constructor

Settings.fromConfig(
  1. Map<String, dynamic> json
)

constructs a Settings from the build.yaml file

Implementation

factory Settings.fromConfig(Map<String, dynamic> json) {
  return Settings(
    formatOuput: json['format_output'] as bool? ?? false,
  );
}