init method Null safety

  1. @override
bool init(
  1. RuntimeArtboard artboard
)
override

Implementation

@override
bool init(RuntimeArtboard artboard) {
  _instance = artboard.animationByName(animationName);
  isActive = autoplay;
  return _instance != null;
}