WriteText constructor

const WriteText({
  1. Key? key,
  2. required String data,
  3. WriteTextController? controller,
  4. bool showCursor = true,
  5. Widget? cursor,
  6. int perMillSeconds = _defaultMillSeconds,
  7. TextStyle? textStyle,
  8. bool autoStart = true,
})

Implementation

const WriteText({
  Key? key,
  required this.data,
  this.controller,
  this.showCursor = true,
  this.cursor,
  this.perMillSeconds = _defaultMillSeconds,
  this.textStyle,
  this.autoStart = true,
})  : assert(data != null, 'data cannot be null'),
      assert(perMillSeconds != null, 'perDuration cannot be null'),
      super(key: key);