Data constructor

Data({
  1. required String name,
  2. required MaterialColor color,
  3. bool? value,
})

Implementation

Data(
    {required this.name,
    required this.color,
    this.value});