Bubble constructor

Bubble({
  1. required String text,
  2. double scale = 1,
  3. Color activeColor = const Color.fromARGB(128, 244, 67, 54),
  4. Color inactiveColor = const Color.fromARGB(128, 33, 149, 243),
  5. TextStyle textStyle = const TextStyle(fontSize: 18),
})

Implementation

Bubble({
  required this.text,
  this.scale = 1,
  this.activeColor = const Color.fromARGB(128, 244, 67, 54),
  this.inactiveColor = const Color.fromARGB(128, 33, 149, 243),
  this.textStyle = const TextStyle(
    fontSize: 18,
  ),
}) : assert(
        scale >= 0 && scale <= 1,
      );