simplePollMaterial3Preview function

  1. @SimplePollsBrightnessPreview('Material 3 poll')
WidgetBuilder simplePollMaterial3Preview()

Implementation

@SimplePollsBrightnessPreview('Material 3 poll')
WidgetBuilder simplePollMaterial3Preview() {
  return (context) => _InteractivePollPreview(
    initialPoll: _buildPoll(allowsMultipleAnswers: true),
    style: const PollStyle(variant: StyleVariant.material3),
  );
}