copyWith method

DeviceInfoEntity copyWith({
  1. String? identifier,
  2. int? buildVersionCode,
  3. String? name,
  4. String? versionString,
  5. String? versionCode,
  6. String? sysVersion,
  7. String? machine,
  8. String? idfv,
  9. int? screenWidth,
  10. int? screenHeight,
  11. String? adsToken,
})

Implementation

DeviceInfoEntity copyWith(
        {String? identifier,
        int? buildVersionCode,
        String? name,
        String? versionString,
        String? versionCode,
        String? sysVersion,
        String? machine,
        String? idfv,
        int? screenWidth,
        int? screenHeight,
        String? adsToken}) =>
    DeviceInfoEntity(
        identifier: identifier ?? this.identifier,
        buildVersionCode: buildVersionCode ?? this.buildVersionCode,
        name: name ?? this.name,
        versionString: versionString ?? this.versionString,
        versionCode: versionCode ?? this.versionCode,
        sysVersion: sysVersion ?? this.sysVersion,
        machine: machine ?? this.machine,
        idfv: idfv ?? this.idfv,
        screenWidth: screenWidth ?? this.screenWidth,
        screenHeight: screenHeight ?? this.screenHeight,
        adsToken: adsToken ?? this.adsToken);