CustomInkSplashSetting class

A setting class for CustomInkSplash, this class contains some durations options for ripple effect and color fading.

Constructors

CustomInkSplashSetting({Duration unconfirmedSplashDuration = const Duration(milliseconds: 1000), double confirmedSplashVelocity = 1.0, Duration confirmedFadeOutDuration = const Duration(milliseconds: 200), Duration confirmedFadeOutInterval = const Duration(milliseconds: 0)})
const

Properties

confirmedFadeOutDuration Duration
The fade-out duration when ink is confirmed or canceled, which equals to original _kSplashFadeDuration.
final
confirmedFadeOutInterval Duration
The fade-out interval when ink is confirmed, which defaults to 0 in defaultSetting.
final
confirmedSplashVelocity double
The radius-splash velocity (logical pixels per millisecond) when ink is confirmed, which influences splash duration, and equals to original _kSplashConfirmedVelocity.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unconfirmedSplashDuration Duration
The radius-splash duration when ink is unconfirmed or canceled, which equals to original _kUnconfirmedSplashDuration.
final

Methods

copyWith({Duration? unconfirmedSplashDuration, double? confirmedSplashVelocity, Duration? confirmedFadeOutDuration, Duration? confirmedFadeOutInterval}) CustomInkSplashSetting
Creates a copy of this value but with given fields replaced with the new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

defaultSetting → const CustomInkSplashSetting
The default, or said, the original settings of InkSplash in Flutter.
preferredSetting → const CustomInkSplashSetting
The preferred CustomInkSplash setting by AoiHosizora :)