role property

  1. @override
String get role
override

All Legend behaviors get the same role ID, because you should only have one legend on a chart.

Implementation

@override
String get role => 'legend';