Carver X5 CNC Plugin Platform Interface
A common platform interface for the Carver X5 CNC plugin.
This package is the platform interface for the carverx5_cnc_plugin plugin. It defines the API contract that all platform implementations must implement.
Usage
Platform-specific implementations should extend the Carverx5CncPluginPlatform
class and implement the required methods. The default implementation uses method channels.
class MyPlatformCarverx5CncPlugin extends Carverx5CncPluginPlatform {
@override
Future<String?> getPlatformVersion() {
// Platform-specific implementation
}
@override
Future<List<String>> getTtyDevices() {
// Platform-specific implementation
}
}
Then register the implementation:
void registerWith() {
Carverx5CncPluginPlatform.instance = MyPlatformCarverx5CncPlugin();
}