carverx5_cnc_plugin_platform_interface 0.0.1 copy "carverx5_cnc_plugin_platform_interface: ^0.0.1" to clipboard
carverx5_cnc_plugin_platform_interface: ^0.0.1 copied to clipboard

A common platform interface for the carverx5_cnc_plugin.

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();
}
0
likes
140
points
168
downloads

Publisher

unverified uploader

Weekly Downloads

A common platform interface for the carverx5_cnc_plugin.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on carverx5_cnc_plugin_platform_interface