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 new GestureDetector(
      child: new Text(legendEntry.label, style: style),
      onTapUp: makeTapUpCallback(context, legendEntry, legend));
}