Spin constructor

const Spin({
  1. Key? key,
  2. Widget? child,
  3. Duration duration = const Duration(seconds: 2),
})

Implementation

const Spin({
  Key? key,
  this.child,
  this.duration = const Duration(seconds: 2),
}) : super(key: key);