AndroidIntent.private constructor
AndroidIntent.private({})
This constructor is only exposed for unit testing. Do not rely on this in app code, it may break without warning.
Implementation
@visibleForTesting
AndroidIntent.private({
required Platform platform,
required MethodChannel channel,
this.action,
this.flags,
this.category,
this.data,
this.arguments,
this.arrayArguments,
this.package,
this.componentName,
this.type,
}) : assert(
action != null || componentName != null,
'action or component (or both) must be specified',
),
assert(
componentName == null || package != null,
'package must be specified when componentName is used',
),
_channel = channel,
_platform = platform;