containerChangeFromChildChange method

  1. @protected
C containerChangeFromChildChange({
  1. ChangeEmitter<Change>? child,
  2. Change? change,
  3. bool quiet = false,
})

override this method in order to create and use your own subclass of ContainerChange If you use EmitterContainer.emit then this function will be called with child and childChange as null

Implementation

@protected
C containerChangeFromChildChange(
    {ChangeEmitter? child, Change? change, bool quiet = false}) {
  if (emitDetailedChanges && child != null)
    return ContainerChange(child, change) as C;
  return ContainerChange.any() as C;
}