isTrailLicence method

  1. @override
Future<bool?> isTrailLicence()
override

This method is used to check if the license is trail or not.

Implementation

@override
Future<bool?> isTrailLicence() async {
  bool? val = true;
  try {
    val =
        await mirrorFlyMethodChannel.invokeMethod<bool?>('IS_TRIAL_LICENSE');
    LogMessage.d('isTrailLicence', '$val');
    return val;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}