withKey method Null safety

Yt withKey(
  1. String apiKey
)

Implementation

static Yt withKey(String apiKey) {
  final yt = Yt();

  yt.setModules(apiKey: apiKey);

  return yt;
}