fromStrings static method
FixedAxis<int>
fromStrings(
- List<
String> values, { - TextStyle? textStyle,
- double? margin,
- double? marginStart,
- double? marginEnd,
- PdfColor? color,
- double? width,
- bool? divisions,
- double? divisionsWidth,
- PdfColor? divisionsColor,
- bool? divisionsDashed,
- bool? ticks,
- bool? axisTick,
- double angle = 0,
- GridAxisBuildLabel? buildLabel,
Implementation
static FixedAxis<int> fromStrings(
List<String> values, {
TextStyle? textStyle,
double? margin,
double? marginStart,
double? marginEnd,
PdfColor? color,
double? width,
bool? divisions,
double? divisionsWidth,
PdfColor? divisionsColor,
bool? divisionsDashed,
bool? ticks,
bool? axisTick,
double angle = 0,
GridAxisBuildLabel? buildLabel,
}) {
return FixedAxis<int>(
List<int>.generate(values.length, (int index) => index),
format: (num v) => values[v.toInt()],
textStyle: textStyle,
margin: margin,
marginStart: marginStart,
marginEnd: marginEnd,
color: color,
width: width,
divisions: divisions,
divisionsWidth: divisionsWidth,
divisionsColor: divisionsColor,
divisionsDashed: divisionsDashed,
ticks: ticks,
axisTick: axisTick,
angle: angle,
buildLabel: buildLabel,
);
}