AndroidIntent.private constructor

AndroidIntent.private({
  1. Platform? platform,
  2. MethodChannel? channel,
  3. String? action,
  4. List<int>? flags,
  5. String? category,
  6. String? data,
  7. Map<String, dynamic>? arguments,
  8. Map<String, List>? arrayArguments,
  9. String? package,
  10. String? componentName,
  11. 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({
  Platform? platform,
  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'),
      _channel = channel,
      _platform = platform;