create method

  1. @override
Future<LSLInlet<T>> create()

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

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

Implementation

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