FlowShader constructor

const FlowShader({
  1. Key? key,
  2. required Widget child,
  3. Duration duration = const Duration(seconds: 2),
  4. Axis direction = Axis.horizontal,
  5. List<Color> flowColors = const <Color>[Colors.white, Colors.black],
})

Implementation

const FlowShader({
  Key? key,
  required this.child,
  this.duration = const Duration(seconds: 2),
  this.direction = Axis.horizontal,
  this.flowColors = const <Color>[Colors.white, Colors.black],
})  : assert(flowColors.length == 2),
      super(key: key);