BarStyle.forward constructor

BarStyle.forward({
  1. double width = 120,
  2. double height = 5,
  3. Color? color,
  4. Color? background,
  5. Color? identifier,
  6. double identifierWidth = 2.0,
  7. BorderRadius? borderRadius,
})

Implementation

BarStyle.forward({
  this.width = 120,
  this.height = 5,
  Color? color,
  Color? background,
  Color? identifier,
  this.identifierWidth = 2.0,
  BorderRadius? borderRadius,
})  : identifier = identifier ?? Colors.red,
      color = color ?? Colors.white,
      secondBackground = Colors.transparent,
      background = background ?? Colors.white.withOpacity(0.2),
      borderRadius =
          borderRadius ?? const BorderRadius.all(Radius.circular(5));