setAssetDataSource method
Set data source for playing a video from an asset.
The name of the asset is given by the dataSource
argument and must not be
null. The package
argument must be non-null when the asset comes from a
package and null otherwise.
Implementation
Future<void> setAssetDataSource(
String dataSource, {
String? package,
bool? showNotification,
String? title,
String? author,
String? imageUrl,
String? notificationChannelName,
Duration? overriddenDuration,
String? activityName,
}) {
return _setDataSource(
DataSource(
sourceType: DataSourceType.asset,
asset: dataSource,
package: package,
showNotification: showNotification,
title: title,
author: author,
imageUrl: imageUrl,
notificationChannelName: notificationChannelName,
overriddenDuration: overriddenDuration,
activityName: activityName,
),
);
}