legendLinear function

Widget legendLinear({
  1. Key? key,
  2. required dynamic scale,
  3. LegendLinearConfig config = const LegendLinearConfig(),
  4. List<double>? tickValues,
  5. String tickFormat(
    1. double
    )?,
  6. String? title,
  7. TextStyle? titleStyle,
})

Creates a LegendLinear widget.

Implementation

Widget legendLinear({
  Key? key,
  required dynamic scale,
  LegendLinearConfig config = const LegendLinearConfig(),
  List<double>? tickValues,
  String Function(double)? tickFormat,
  String? title,
  TextStyle? titleStyle,
}) {
  return LegendLinear(
    key: key,
    scale: scale,
    config: config,
    tickValues: tickValues,
    tickFormat: tickFormat,
    title: title,
    titleStyle: titleStyle,
  );
}