Media.asset constructor

Media.asset(
  1. String asset, {
  2. dynamic startTime = Duration.zero,
})

Makes Media object from assets.

WARNING

This method only works for Flutter. Might result in an exception on Dart CLI.

Implementation

factory Media.asset(
  String asset, {
  startTime: Duration.zero,
}) {
  throw UnimplementedError('The platform is not supported');
}