pageDecorations property

  1. @override
List<DartBoardDecoration> get pageDecorations
override

The page decorations (page level)

Implementation

@override
List<DartBoardDecoration> get pageDecorations => [
      DartBoardDecoration(
          decoration: (BuildContext context, Widget child) => LifeCycleWidget(
              key: ValueKey(namespace + '_lifecycle'),
              init: (ctx) => Particles.instance.addLayer(_particleLayer),
              dispose: (ctx) =>
                  Particles.instance.removeLayer(_particleLayer),
              child: child),
          name: '${namespace}_overlay'),
    ];