mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Merge pull request #638 from vlidholt/master
Adds a new ActionDelay class to sprites
This commit is contained in:
commit
2e6ae25f5c
@ -295,6 +295,13 @@ class ActionGroup extends ActionInterval {
|
||||
}
|
||||
}
|
||||
|
||||
/// An action that doesn't perform any other task than taking time. This action
|
||||
/// is typically used in a sequence to space out other events.
|
||||
class ActionDelay extends ActionInterval {
|
||||
/// Creates a new action with the specified [delay]
|
||||
ActionDelay(double delay) : super(delay);
|
||||
}
|
||||
|
||||
/// An action that doesn't have a duration. If this class is overridden to
|
||||
/// create custom instant actions, only the [fire] method should be overriden.
|
||||
abstract class ActionInstant extends Action {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user