create method

Creates the outlet based on the execution mode This method must be called before using the outlet. It initializes the outlet and prepares it for pushing samples. Execution:

  • Isolated mode: Uses LSLOutletIsolateManager for async operations _createIsolated
  • Direct mode: Uses FFI calls directly _createDirect Returns: A LSLOutlet instance ready for fluid interface See also: destroy to clean up resources

Implementation

@override
Future<LSLOutlet> create() async {
  super.create();
  // Create the outlet based on the execution mode
  return _useIsolates ? _createIsolated() : _createDirect();
}