copyWith<T> method

T copyWith <T>(
  1. T object,
  2. Map<String, dynamic> map
)

Copy Dart object of type T & merge it with Map<String, dynamic>

Implementation

static T copyWith<T>(T object, Map<String, dynamic> map) {
  return fromMap<T>(toMap(object)..addAll(map));
}