setMinTimeBetweenSessionsMillis method

Future<void> setMinTimeBetweenSessionsMillis(
  1. int timeInMillis
)

Defines a custom session expiration time where the timeout input is in milliseconds.

Implementation

Future<void> setMinTimeBetweenSessionsMillis(int timeInMillis) async {
  Map<String, dynamic> properties = _baseProperties();
  properties['timeInMillis'] = timeInMillis;

  return await _channel.invokeMethod(
      'setMinTimeBetweenSessionsMillis', jsonEncode(properties));
}