updateCustom method

void updateCustom(
  1. State? fn(
    1. State? custom
    )
)

Updates the custom state using a mutator function.

Implementation

void updateCustom(State? Function(State? custom) fn) =>
    session.updateCustom(fn);