ZegoLiveStreamingPKBattleViewBuilder typedef

ZegoLiveStreamingPKBattleViewBuilder = Widget Function(BuildContext context, List<ZegoUIKitUser?> hosts, Map<String, dynamic> extraInfo)

This typedef defines a callback function for building custom components for the PK Battle view.

  • context is a BuildContext object.
  • hosts is a list of ZegoUIKitUser objects representing all the hosts in the PK Battle. Each ZegoUIKitUser object represents a host in the PK Battle.
  • extraInfo is a Map object containing custom information for the PK Battle.
  • Return a Widget object representing the custom component for the PK Battle view.

Implementation

typedef ZegoLiveStreamingPKBattleViewBuilder = Widget Function(
  BuildContext context,
  List<ZegoUIKitUser?> hosts,
  Map<String, dynamic> extraInfo,
);