lockRelease static method

void lockRelease(
  1. dynamic state,
  2. String name, {
  3. required Function perform,
  4. bool shouldSetState = true,
})

Perform a lock release The lockRelease method will call the function provided in perform and then block the function from being called again until it has finished.

Implementation

static void lockRelease(
  dynamic state,
  String name, {
  required Function perform,
  bool shouldSetState = true,
}) {
  _updateState(_findStateName(state), "lock-release", {
    "name": name,
    "perform": perform,
    "shouldSetState": shouldSetState,
  });
}