onAnimationCreated property

Stream<String> get onAnimationCreated

Event for each animation that has been created.

Implementation

Stream<String> get onAnimationCreated => _client.onEvent
    .where((event) => event.name == 'Animation.animationCreated')
    .map((event) => event.parameters['id'] as String);