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