initStyleEncapsulation function

void initStyleEncapsulation(
  1. CompileView view,
  2. ClassStmt viewClass
)

Implementation

void initStyleEncapsulation(CompileView view, o.ClassStmt viewClass) {
  // Only component views initialize styles; embedded views inherit them from
  // their parent, and host views have none.
  if (view.viewType == ViewType.component) {
    _ViewStyleLinker(view, viewClass).initStyleEncapsulation();
  }
}