Community constructor

Community({
  1. required Client client,
  2. bool enterprise = false,
  3. Map<String, dynamic> kwargs = const {},
})

Implementation

Community({
  required Client client,
  bool enterprise = false,
  Map<String, dynamic> kwargs = const {},
}) : super(
        client: client,
        baseUrl: '',
        enterprise: enterprise,
        kwargs: kwargs,
      ) {
  if (enterprise) {
    communityBaseUrl = '${client.baseUrl}v1/enterprise/images/text2img/';
  } else {
    communityBaseUrl = '${client.baseUrl}v6/images/text2img/';
  }
}