copyWith method

ApptiveGridOptions copyWith({
  1. ApptiveGridEnvironment? environment,
  2. ApptiveGridAuthenticationOptions? authenticationOptions,
  3. ApptiveGridCache? cache,
  4. Map<ApptiveGridEnvironment, AttachmentConfiguration>? attachmentConfigurations,
  5. List<FormWidgetConfiguration>? formWidgetConfigurations,
})

Creates a copy of ApptiveGridOptions with the provided values

Implementation

ApptiveGridOptions copyWith({
  ApptiveGridEnvironment? environment,
  ApptiveGridAuthenticationOptions? authenticationOptions,
  ApptiveGridCache? cache,
  Map<ApptiveGridEnvironment, AttachmentConfiguration>?
      attachmentConfigurations,
  List<FormWidgetConfiguration>? formWidgetConfigurations,
}) {
  return ApptiveGridOptions(
    environment: environment ?? this.environment,
    authenticationOptions:
        authenticationOptions ?? this.authenticationOptions,
    cache: cache ?? this.cache,
    attachmentConfigurations:
        attachmentConfigurations ?? this.attachmentConfigurations,
    formWidgetConfigurations:
        formWidgetConfigurations ?? this.formWidgetConfigurations,
  );
}