PixaPlatformContract constructor

const PixaPlatformContract({
  1. required String channel,
  2. required Set<PixaHostPlatform> supportedPlatforms,
  3. int maxConcurrentCalls = 1,
  4. bool supportsCancellation = false,
  5. bool hotPathSafe = false,
  6. bool backgroundQueue = true,
  7. int? maxOutputBytes,
})

Creates a platform-channel contract.

Implementation

const PixaPlatformContract({
  required this.channel,
  required this.supportedPlatforms,
  this.maxConcurrentCalls = 1,
  this.supportsCancellation = false,
  this.hotPathSafe = false,
  this.backgroundQueue = true,
  this.maxOutputBytes,
});