activate method

  1. @override
Future<String?> activate(
  1. String activationCode
)
override

Activates the SoftPOS terminal with the given activationCode.

Implementation

@override
Future<String?> activate(String activationCode) async {
  try {
    final result = await methodChannel.invokeMethod<String>('activation', {'code': activationCode});
    return result;
  } on PlatformException catch (e) {
    return e.message;
  }
}