GaugeTitle constructor

const GaugeTitle({
  1. required String text,
  2. TextStyle textStyle = const TextStyle(fontSize: 15.0, fontFamily: 'Segoe UI', fontStyle: FontStyle.normal, fontWeight: FontWeight.normal),
  3. GaugeAlignment alignment = GaugeAlignment.center,
  4. Color? borderColor,
  5. double borderWidth = 0,
  6. Color? backgroundColor,
})

Creates the gauge title with default or required properties.

Implementation

const GaugeTitle(
    {required this.text,
    this.textStyle = const TextStyle(
        fontSize: 15.0,
        fontFamily: 'Segoe UI',
        fontStyle: FontStyle.normal,
        fontWeight: FontWeight.normal),
    this.alignment = GaugeAlignment.center,
    this.borderColor,
    this.borderWidth = 0,
    this.backgroundColor});