withKey method Null safety

Future<Yt> withKey(
  1. String apiKey
)

Implementation

static Future<Yt> withKey(String apiKey) async {
  final yt = Yt();

  yt._apiKey = apiKey;

  yt.setModules();

  return yt;
}