TwoText constructor

const TwoText({
  1. Key? key,
  2. required String first,
  3. required String second,
  4. TextStyle? firstStyle,
  5. String separator = ": ",
  6. TextStyle? secondStyle,
})

Creates a TwoText widget.

first and second are the main texts to display.

Implementation

const TwoText({
  super.key,
  required this.first,
  required this.second,
  this.firstStyle,
  this.separator = ": ",
  this.secondStyle,
});