simplePlayerFactory property
SimpleAudioPlayer Function(File file)
get
simplePlayerFactory
Implementation
static SimpleAudioPlayer Function(File file) get simplePlayerFactory {
var fac = _playerFactory;
if (fac == null) {
throw Exception('Simple player factory not registered');
}
return fac;
}
set
simplePlayerFactory
(SimpleAudioPlayer fn(File file))
Implementation
static set simplePlayerFactory(SimpleAudioPlayer Function(File file) fn) {
_playerFactory = fn;
}