You need to sign in or sign up before continuing.
myhr_facescan_method_channel.dart 599 Bytes
Newer Older
Chokmongkhon Jansanom committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';

import 'myhr_facescan_platform_interface.dart';

/// An implementation of [MyhrFacescanPlatform] that uses method channels.
class MethodChannelMyhrFacescan extends MyhrFacescanPlatform {
  /// The method channel used to interact with the native platform.
  @visibleForTesting
  final methodChannel = const MethodChannel('myhr_facescan');

  @override
  Future<String?> getPlatformVersion() async {
    final version =
        await methodChannel.invokeMethod<String>('getPlatformVersion');
    return version;
  }
}