flutter_milibris_platform_interface 0.1.1 copy "flutter_milibris_platform_interface: ^0.1.1" to clipboard
flutter_milibris_platform_interface: ^0.1.1 copied to clipboard

unlisted

A common platform interface for the flutter_milibris plugin.

flutter_milibris_platform_interface #

A common platform interface for the flutter_milibris plugin.

Overview #

This package defines the FlutterMilibrisPlatform abstract class that all platform implementations must extend. It exposes two methods:

  • extractArchive(String tempPath, String destPath) — extracts a Milibris archive to the destination path.
  • open(String destPath) — opens the extracted content with the appropriate native reader.

Implementing a new platform #

Extend FlutterMilibrisPlatform and register your implementation:

class MyPlatformFlutterMilibris extends FlutterMilibrisPlatform {
  @override
  Future<void> extractArchive(String tempPath, String destPath) async {
    // platform-specific implementation
  }

  @override
  Future<void> open(String destPath) async {
    // platform-specific implementation
  }
}

// Register it
FlutterMilibrisPlatform.instance = MyPlatformFlutterMilibris();

Use extends rather than implements to avoid breakage when new methods are added.

0
likes
0
points
2.65k
downloads

Publisher

unverified uploader

Weekly Downloads

A common platform interface for the flutter_milibris plugin.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_milibris_platform_interface