ChannelConfig class

Centralized channel configuration for YOLO operations.

This class provides a unified way to handle method channel setup, naming conventions, and communication patterns that were previously duplicated across multiple files in the codebase.

Constructors

ChannelConfig.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

createChannel(String channelName, {String? instanceId}) MethodChannel
Creates a method channel with the standard YOLO naming convention.
createControlChannel(String viewId) MethodChannel
Creates a YOLO control channel for platform view operations.
createDetectionResultsChannel(String viewId) EventChannel
Creates a YOLO detection results event channel.
createSingleImageChannel({String? instanceId}) MethodChannel
Creates a YOLO single image channel for static operations.
createStandardArgs({int? viewId, String? modelPath, String? task, Map<String, dynamic>? additionalArgs}) Map<String, dynamic>
Creates standardized method call arguments for common operations.
validateMethodCall(MethodCall call, List<String> requiredKeys) → void
Validates method call arguments for common patterns.