copyWith method

TextStyleEntity copyWith(
  1. TextStyleEntity e, {
  2. String? id,
  3. String? stabilID,
  4. String? branchID,
  5. String? name,
  6. String? fontFamily,
  7. FFontSize? fontSize,
  8. FFontWeight? fontWeight,
})

Implementation

TextStyleEntity copyWith(final TextStyleEntity e,
        {final String? id,
        final String? stabilID,
        final String? branchID,
        final String? name,
        final String? fontFamily,
        final FFontSize? fontSize,
        final FFontWeight? fontWeight}) =>
    TextStyleEntity(
        id: id ?? e.id,
        stabilID: stabilID ?? e.stabilID,
        branchID: branchID ?? e.branchID,
        name: name ?? e.name,
        fontFamily: fontFamily ?? e.fontFamily,
        fontSize: fontSize ?? e.fontSize,
        fontWeight: fontWeight ?? e.fontWeight);