widget method

Widget widget({
  1. dynamic onStart(
    1. RadioPlayer
    )?,
  2. dynamic onStop(
    1. RadioPlayer
    )?,
  3. Future<void> beforeStart(
    1. RadioPlayer
    )?,
  4. bool hideIcon = false,
  5. TextEditingController? editController,
})

Implementation

Widget widget({
  Function(RadioPlayer)? onStart,
  Function(RadioPlayer)? onStop,
  Future<void> Function(RadioPlayer)? beforeStart,
  bool hideIcon = false,
  TextEditingController? editController,
}) {
  return RadioWidget(
    key: playerKey,
    radio: this,
    onStart: onStart,
    onStop: onStop,
    beforeStart: beforeStart,
    hideIcon: hideIcon,
    editController: editController,
  );
}