1234567891011121314151617181920212223242526 |
- import 'package:flutter/services.dart';
- import 'package:kmpdfkit_demo/widgets/contains.dart';
- class ComPDFKit {
- static MethodChannel? _privateChannel;
- static MethodChannel get _channel {
- if (_privateChannel == null) {
- _privateChannel = const MethodChannel(ChannelNames.eventComPDFKitGlobal);
- _privateChannel?.setMethodCallHandler(_platformCallHandler);
- }
- return _privateChannel!;
- }
- static Future<void> _platformCallHandler(MethodCall call) {
- return Future.value();
- }
- /// gets the ComPDFKit SDK Version Code
- static Future<String?> getComPDFKitVersionCode() async => _channel.invokeMethod('ComPDFKitVersion');
- }
|