StateProvider constructor

StateProvider({
  1. Map<String, List<KeysToSubscribe>>? subscribeTo,
  2. void onChange(
    1. Map<String, SearchControllerState>,
    2. Map<String, SearchControllerState>
    )?,
  3. Widget build(
    1. Map<String, SearchControllerState>
    )?,
  4. Key? key,
})

Implementation

StateProvider({
  this.subscribeTo,
  this.onChange,
  this.build,
  Key? key,
}) : super(key: key) {
  assert(build != null || onChange != null,
      "Atleast one, build or onChange prop is required.");
}