TimeView constructor

const TimeView({
  1. required int countdown,
  2. required _BuildChild? build,
  3. TimeViewController? controller,
  4. bool enableCancel = false,
  5. Duration duration = const Duration(seconds: 1),
  6. BuildCompleter? buildCompleter,
  7. Key? key,
})

Implementation

const TimeView({
  required this.countdown,
  required this.build,
  this.controller,
  this.enableCancel = false,
  this.duration = const Duration(seconds: 1),
  this.buildCompleter,
  Key? key,
}) : assert(countdown > 0, 'countdown must be greater than 0'),
     super(key: key);