createLabel method

Widget createLabel(
  1. BuildContext context,
  2. LegendEntry legendEntry,
  3. TappableLegend legend,
  4. bool isHidden,
)

Implementation

Widget createLabel(BuildContext context, common.LegendEntry legendEntry,
    TappableLegend legend, bool isHidden) {
  TextStyle style =
      _convertTextStyle(isHidden, context, legendEntry.textStyle);

  return GestureDetector(
      onTapUp: makeTapUpCallback(context, legendEntry, legend),
      child: Text(legendEntry.label, style: style));
}