copyWith method

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
ThemeExtension<TopSheetThemeData> copyWith({
  BottomSheetThemeData? data,
}) {
  return TopSheetThemeData(data: data ?? this.data);
}