withSplashFactory method
Creates a copy of ThemeData but with given InteractiveInkFeatureFactory for splash factory of normal widgets and some kinds of button widgets.
Implementation
ThemeData withSplashFactory(InteractiveInkFeatureFactory factory) => copyWith(
splashFactory: factory,
elevatedButtonTheme: ElevatedButtonThemeData(style: ElevatedButton.styleFrom(splashFactory: factory)),
outlinedButtonTheme: OutlinedButtonThemeData(style: OutlinedButton.styleFrom(splashFactory: factory)),
textButtonTheme: TextButtonThemeData(style: TextButton.styleFrom(splashFactory: factory)),
);