copyWith method

AppConfigData copyWith({
  1. int? id,
  2. DateTime? updatedAt,
  3. String? lenderId,
  4. String? apiEndpoint,
  5. String? apiKey,
  6. String? apiSecret,
  7. String? appBundle,
  8. bool? shouldSyncData,
  9. Value<DateTime?> lastSync = const Value.absent(),
})

Implementation

AppConfigData copyWith(
        {int? id,
        DateTime? updatedAt,
        String? lenderId,
        String? apiEndpoint,
        String? apiKey,
        String? apiSecret,
        String? appBundle,
        bool? shouldSyncData,
        Value<DateTime?> lastSync = const Value.absent()}) =>
    AppConfigData(
      id: id ?? this.id,
      updatedAt: updatedAt ?? this.updatedAt,
      lenderId: lenderId ?? this.lenderId,
      apiEndpoint: apiEndpoint ?? this.apiEndpoint,
      apiKey: apiKey ?? this.apiKey,
      apiSecret: apiSecret ?? this.apiSecret,
      appBundle: appBundle ?? this.appBundle,
      shouldSyncData: shouldSyncData ?? this.shouldSyncData,
      lastSync: lastSync.present ? lastSync.value : this.lastSync,
    );