AppControl constructor

AppControl({
  1. String? appId,
  2. String? operation,
  3. String? uri,
  4. String? mime,
  5. String? category,
  6. LaunchMode launchMode = LaunchMode.single,
  7. Map<String, dynamic> extraData = const <String, dynamic>{},
})

Creates an instance of AppControl with the given parameters.

Implementation

AppControl({
  this.appId,
  this.operation,
  this.uri,
  this.mime,
  this.category,
  this.launchMode = LaunchMode.single,
  this.extraData = const <String, dynamic>{},
}) {
  _id = nativeCreateAppControl(this);
  if (_id == -1) {
    throw Exception('Could not create an instance of AppControl.');
  }
}