Input constructor Null safety

const Input(
  1. String name,
  2. {required bool isRequired,
  3. bool canBeEmpty = true}
)

Implementation

const Input(
  this.name, {
  required this.isRequired,
  this.canBeEmpty = true,
});