copyWith method

CupertinoTextThemeData copyWith({
  1. Color? primaryColor,
  2. TextStyle? textStyle,
  3. TextStyle? actionTextStyle,
  4. TextStyle? tabLabelTextStyle,
  5. TextStyle? navTitleTextStyle,
  6. TextStyle? navLargeTitleTextStyle,
  7. TextStyle? navActionTextStyle,
  8. TextStyle? pickerTextStyle,
  9. TextStyle? dateTimePickerTextStyle,
})

Returns a copy of the current CupertinoTextThemeData instance with specified overrides.

Implementation

CupertinoTextThemeData copyWith({
  Color? primaryColor,
  TextStyle? textStyle,
  TextStyle? actionTextStyle,
  TextStyle? tabLabelTextStyle,
  TextStyle? navTitleTextStyle,
  TextStyle? navLargeTitleTextStyle,
  TextStyle? navActionTextStyle,
  TextStyle? pickerTextStyle,
  TextStyle? dateTimePickerTextStyle,
}) {
  return CupertinoTextThemeData._raw(
    _defaults,
    primaryColor ?? _primaryColor,
    textStyle ?? _textStyle,
    actionTextStyle ?? _actionTextStyle,
    tabLabelTextStyle ?? _tabLabelTextStyle,
    navTitleTextStyle ?? _navTitleTextStyle,
    navLargeTitleTextStyle ?? _navLargeTitleTextStyle,
    navActionTextStyle ?? _navActionTextStyle,
    pickerTextStyle ?? _pickerTextStyle,
    dateTimePickerTextStyle ?? _dateTimePickerTextStyle,
  );
}