update method

Implementation

DartBlockProgram update(
  DartBlockProgram Function(DartBlockProgram state) cb,
) => state = cb(state);