create static method

FragmentShader? create()

A new shader from the loaded program, or null while it is still loading (this starts the load).

Implementation

static ui.FragmentShader? create() {
  if (!usable) return null;
  if (_program == null) {
    unawaited(load());
    return null;
  }
  return _program!.fragmentShader();
}