delay method

AnimationSpec delay(
  1. Duration delay
)

Returns a copy of this AnimationSpec which will start animating after the given delay.

Examples

import 'package:flutter/animation.dart';

final withDelay = Curves.linear.animation().delay(250.ms);

Implementation

AnimationSpec delay(Duration delay) => _copyWith(delay: delay);