TooltipBehavior constructor

TooltipBehavior({ChartTextStyle textStyle, ActivationMode activationMode, int animationDuration, bool enable, double opacity, Color borderColor, double borderWidth, double duration, bool shouldAlwaysShow, double elevation, bool canShowMarker, ChartAlignment textAlignment, Color color, String header, String format, ChartWidgetBuilder builder, Color shadowColor })

Implementation

TooltipBehavior(
    {ChartTextStyle textStyle,
    ActivationMode activationMode,
    int animationDuration,
    bool enable,
    double opacity,
    Color borderColor,
    double borderWidth,
    double duration,
    bool shouldAlwaysShow,
    double elevation,
    bool canShowMarker,
    ChartAlignment textAlignment,
    this.color,
    this.header,
    this.format,
    this.builder,
    this.shadowColor})
    : animationDuration = animationDuration ?? 350,
      textAlignment = textAlignment ?? ChartAlignment.center,
      textStyle = textStyle ?? ChartTextStyle(fontSize: 12),
      activationMode = activationMode ?? ActivationMode.singleTap,
      borderColor = borderColor ?? Colors.transparent,
      borderWidth = borderWidth ?? 0,
      duration = duration ?? 3000,
      enable = enable ?? false,
      opacity = opacity ?? 1,
      shouldAlwaysShow = shouldAlwaysShow ?? false,
      canShowMarker = canShowMarker ?? true,
      elevation = elevation ?? 5.0;