PlayerFactory typedef
PlayerFactory =
PlayerController Function({bool? autoPlay, int? id, bool? loop, required PlayerMedia media, bool? once})
define the player contstructor function type
Implementation
typedef PlayerFactory = PlayerController Function(
{
// id
int? id,
bool? autoPlay,
bool? loop,
required PlayerMedia<dynamic> media,
bool? once});