splashFactory method
Return the actual splashFactory defined by the FlexSplashType enum.
Type defaultSplash returns null the type selection should be handled by ThemeData factory defaults or caller.
Implementation
InteractiveInkFeatureFactory? splashFactory(
[bool useMaterial3 = true, bool mockIsWeb = false]) {
switch (this) {
case FlexSplashType.defaultSplash:
return null;
case FlexSplashType.inkSplash:
return InkSplash.splashFactory;
case FlexSplashType.inkRipple:
return InkRipple.splashFactory;
case FlexSplashType.inkSparkle:
return kIsWeb || mockIsWeb
? useMaterial3
? InkRipple.splashFactory
: InkSplash.splashFactory
: InkSparkle.splashFactory;
case FlexSplashType.noSplash:
return NoSplash.splashFactory;
case FlexSplashType.instantSplash:
return FlexInstantSplash.splashFactory;
}
}