NavigationTrafficWidget constructor

const NavigationTrafficWidget({
  1. required TrafficController controller,
  2. Key? key,
  3. RoundedCorners roundedCorners = const RoundedCorners.all(),
  4. TrafficWidgetTheme? light,
  5. TrafficWidgetTheme? dark,
})

Implementation

const NavigationTrafficWidget({
  required this.controller,
  super.key,
  this.roundedCorners = const RoundedCorners.all(),
  TrafficWidgetTheme? light,
  TrafficWidgetTheme? dark,
}) : super(
        light: light ?? TrafficWidgetTheme.defaultLight,
        dark: dark ?? TrafficWidgetTheme.defaultDark,
      );