subtitle property

  1. @override
List<String>? subtitle
override

Returns an array of subtitle of the choice

Implementation

@override
List<String>? get subtitle {
  return isNotEmpty
      ? choice
          .map((S2Choice<T> item) => item.subtitle)
          .toList()
          .cast<String>()
      : null;
}