program property

FragmentProgram? get program

The compiled shader, once it has arrived.

Null until then, and a surface with a proxy and no program draws the unrefracted proxy rather than nothing — which is better than a flat tint and worse than glass, so it is counted separately (RenderGlassSurface.paintsWithOptics) rather than left to look like success on a screenshot.

Implementation

ui.FragmentProgram? get program => _program;
set program (FragmentProgram? value)

Implementation

set program(ui.FragmentProgram? value) {
  if (identical(value, _program)) {
    return;
  }
  _program = value;
  notifyListeners();
}