OAuthGenerator.fromYamlCredentials constructor
OAuthGenerator.fromYamlCredentials({
- required String credentialsFile,
- required Dio dio,
Implementation
factory OAuthGenerator.fromYamlCredentials(
{required String credentialsFile, required Dio dio}) {
return OAuthGenerator(
oauthCredentials: OAuthCredentials.fromJson(jsonDecode(
jsonEncode(loadYaml(File(credentialsFile).readAsStringSync())))),
dio: dio);
}