AndroidIntent.private constructor

  1. @visibleForTesting
AndroidIntent.private({
  1. required Platform platform,
  2. required MethodChannel channel,
  3. String? action,
  4. List<int>? flags,
  5. String? category,
  6. String? data,
  7. Map<String, dynamic>? arguments,
  8. String? package,
  9. String? componentName,
  10. String? type,
})

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.package,
  this.componentName,
  this.type,
})  : assert(action != null || componentName != null,
          'action or component (or both) must be specified'),
      _channel = channel,
      _platform = platform;