getTimeout method

Duration getTimeout(
  1. Methods method
)

Specific timeout logic for specific methods.

Implementation

Duration getTimeout(Methods method) {
  switch (method) {
    case Methods.socialLogin:
    case Methods.addConnection:
      return Duration(minutes: 5);
    default:
      return Duration(minutes: 1);
  }
}