structOnOp method

  1. @nonVirtual
void structOnOp(
  1. void callback(
    1. StructPointer<D> p
    )
)

Calls callback with op if it is set, otherwise no-ops.

Implementation

@nonVirtual
void structOnOp(void Function(StructPointer<D> p) callback) {
  if (op case StructPointer<D> op) callback(op);
}