setExpiresInMinutes static method

Future<void> setExpiresInMinutes(
  1. int expiresInMinutes
)

Implementation

static Future<void> setExpiresInMinutes(int expiresInMinutes) async {
  try {
    await platform.invokeMethod('setExpiresInMinutes',
        <String, int>{'expiresInMinutes': expiresInMinutes});
  } on PlatformException catch (e) {
    showToast(e.message.toString());
  }
}