TextLiquidFill constructor

TextLiquidFill({
  1. Key? key,
  2. required String text,
  3. TextStyle textStyle = const TextStyle(fontSize: 140, fontWeight: FontWeight.bold),
  4. TextAlign textAlign = TextAlign.left,
  5. Duration loadDuration = const Duration(seconds: 6),
  6. Duration waveDuration = const Duration(seconds: 2),
  7. double boxHeight = 250,
  8. double boxWidth = 400,
  9. Color boxBackgroundColor = Colors.black,
  10. Color waveColor = Colors.blueAccent,
  11. double loadUntil = 1.0,
})

Implementation

TextLiquidFill({
  Key? key,
  required this.text,
  this.textStyle =
      const TextStyle(fontSize: 140, fontWeight: FontWeight.bold),
  this.textAlign = TextAlign.left,
  this.loadDuration = const Duration(seconds: 6),
  this.waveDuration = const Duration(seconds: 2),
  this.boxHeight = 250,
  this.boxWidth = 400,
  this.boxBackgroundColor = Colors.black,
  this.waveColor = Colors.blueAccent,
  this.loadUntil = 1.0,
})  : assert(loadUntil > 0 && loadUntil <= 1.0),
      super(key: key);