ScaleAnimation constructor

const ScaleAnimation({
  1. required Widget child,
  2. required VoidCallback onTap,
  3. String tooltip = '',
  4. Key? key,
  5. int id = 1,
  6. bool isDisabled = false,
  7. Duration duration = const Duration(milliseconds: 150),
  8. double scaleValue = 0.95,
})

Implementation

const ScaleAnimation({
  required this.child,
  required this.onTap,
  this.tooltip = '',
  Key? key,
  this.id = 1,
  this.isDisabled = false,
  this.duration = const Duration(milliseconds: 150),
  this.scaleValue = 0.95,
})  : assert(scaleValue <= 1 && scaleValue >= 0,
          'Range error: Range should be between [0,1]'),
      super(key: key);