copyWith method

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

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

Implementation

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