package Ġcom . very good security . vgs collect . core . storage Ċ Ċ import Ġcom . very good security . vgs collect . core . model . state . Dependency Ċ import Ġcom . very good security . vgs collect . view . Input Field View Ċ import Ġcom . very good security . vgs collect . view . card . FieldType Ċ Ċ class ĠNot ifier : ĊĠĠĠ ĠDependency Dispatcher Ġ{ ĊĠĠĠ Ġprivate Ġval Ġviews Ġ= Ġmutable Map Of < FieldType , ĠDependency Listener >() ĊĊĠĠĠ Ġoverride Ġfun Ġadd Dependency Listener ( fieldType : ĠFieldType , Ġnot ifier : ĠInput Field View . Dependency Notifier ) Ġ{ ĊĠĠĠĠĠĠĠ Ġviews [ fieldType ] Ġ= Ġnot ifier ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Dependency Detected ( type : ĠFieldType , Ġdependency : ĠDependency ) Ġ{ ĊĠĠĠĠĠĠĠ Ġviews . forEach Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġif ( type Ġ== Ġit . key ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġit . value . dispatch Dependency Setting ( dependency ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }