build method

  1. @override
Widget build(
  1. BuildContext context,
  2. List<Widget> legendEntries
)
override

Implementation

@override
Widget build(BuildContext context, List<Widget> legendEntries) {
  final paddedLegendEntries = ((cellPadding == null)
      ? legendEntries
      : legendEntries
          .map((entry) => Padding(padding: cellPadding!, child: entry))
          .toList());

  return isHorizontalFirst
      ? _buildHorizontalFirst(paddedLegendEntries)
      : _buildVerticalFirst(paddedLegendEntries);
}