createLabel method
Widget
createLabel(
- BuildContext context,
- LegendEntry legendEntry,
- TappableLegend legend,
- 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));
}