createContext function Null safety

ReactiveContext createContext(
  1. {ReactiveConfig? config}
)

Create a new context for running actions and reactions.

You can use this to run a reactivity system in parallel to the mainContext. All actions, reactions will be run within this context. Make sure to pass this context in calls to autorun, reaction, when, action, observable, etc.

Most of the time you should be fine with the mainContext

Implementation

ReactiveContext createContext({ReactiveConfig? config}) =>
    ReactiveContext(config: config);