has static method

bool has([
  1. Gate gate = Gate.core
])

Checks whether or not the SDK has the gate and is available.

Parameters

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

Returns

  • True if the gate is available, false otherwise.

Implementation

static bool has([Gate gate = Gate.core]) {
  final OperationResult resultString = staticMethod(
    'GateKeeper',
    'has',
    args: gate.id,
  );

  return resultString['result'];
}