GlassMorphController constructor

GlassMorphController({
  1. required TickerProvider vsync,
  2. MorphSpeed speed = MorphSpeed.normal,
  3. MorphStyle style = MorphStyle.teardrop,
})

Creates a GlassMorphController.

vsync must be a valid TickerProvider, typically obtained from TickerProviderStateMixin.

Implementation

GlassMorphController({
  required TickerProvider vsync,
  this.speed = MorphSpeed.normal,
  this.style = MorphStyle.teardrop,
}) : _animationController = AnimationController.unbounded(vsync: vsync) {
  _animationController.addListener(_onTick);
  _animationController.addStatusListener(_onStatusChange);
}