choiceTitle method

  1. @override
Widget? choiceTitle(
  1. S2Choice<T> choice
)
override

Returns the choice title widget

Implementation

@override
Widget? choiceTitle(S2Choice<T> choice) {
  return choice.title != null
      ? builder?.choiceTitle?.call(modalContext, this, choice) ??
          defaultChoiceTitle(choice)
      : null;
}