getStatus static method

GateStatus getStatus([
  1. Gate gate = Gate.core
])

Gets the status of the specified gate.

Parameters

  • gate: The gate to check, defaults to Gate.core.

Returns

  • The status of the gate, including the decision, expiry time, and reason.

Implementation

static GateStatus getStatus([Gate gate = Gate.core]) {
  final OperationResult resultMap = staticMethod(
    'GateKeeper',
    'getStatus',
    args: gate.id,
  );

  return GateStatus.fromJson(resultMap['result']);
}