Dark.fromJson constructor Null safety

Dark.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Dark.fromJson(Map<String, dynamic> json) {
  _color = json['color'];
}