TermOfService constructor

TermOfService({
  1. required String id,
  2. required bool mandatory,
  3. required String text,
  4. String? linkUrl,
  5. bool initialValue = false,
  6. String validationErrorMessage = 'Required',
})

Implementation

TermOfService({
  required this.id,
  required this.mandatory,
  required this.text,
  this.linkUrl,
  this.initialValue = false,
  this.validationErrorMessage = 'Required',
}) {
  checked = initialValue;
}