docs: included .test constructor docs

pull/234/head
alestiago 3 years ago
parent 7ce43103cf
commit c9dbb4090d

@ -62,7 +62,11 @@ class AlienBumper extends BodyComponent with InitialPosition {
children: children, children: children,
); );
/// {@macro alien_bumper} /// Creates an [AlienBumper] without any children.
///
/// This can be used for testing [AlienBumper]'s behaviors in isolation.
// TODO(alestiago): Refactor injecting bloc once the following is merged:
// https://github.com/flame-engine/flame/pull/1538
@visibleForTesting @visibleForTesting
AlienBumper.test({ AlienBumper.test({
required this.bloc, required this.bloc,

@ -78,7 +78,11 @@ class DashNestBumper extends BodyComponent with InitialPosition {
bloc: DashNestBumperCubit(), bloc: DashNestBumperCubit(),
); );
/// {@macro dash_nest_bumper} /// Creates an [DashNestBumper] without any children.
///
/// This can be used for testing [DashNestBumper]'s behaviors in isolation.
// TODO(alestiago): Refactor injecting bloc once the following is merged:
// https://github.com/flame-engine/flame/pull/1538
@visibleForTesting @visibleForTesting
DashNestBumper.test({required this.bloc}) DashNestBumper.test({required this.bloc})
: _majorRadius = 3, : _majorRadius = 3,

@ -79,7 +79,11 @@ class SparkyBumper extends BodyComponent with InitialPosition {
children: children, children: children,
); );
/// {@macro sparky_bumper} /// Creates an [SparkyBumper] without any children.
///
/// This can be used for testing [SparkyBumper]'s behaviors in isolation.
// TODO(alestiago): Refactor injecting bloc once the following is merged:
// https://github.com/flame-engine/flame/pull/1538
@visibleForTesting @visibleForTesting
SparkyBumper.test({ SparkyBumper.test({
required this.bloc, required this.bloc,

Loading…
Cancel
Save