From a9452b6f89843e3465490073174160b267632e67 Mon Sep 17 00:00:00 2001 From: alestiago Date: Fri, 4 Mar 2022 13:45:08 +0000 Subject: [PATCH] docs: included Ball method comment --- lib/game/components/ball.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/game/components/ball.dart b/lib/game/components/ball.dart index 8ff24094..b80ea029 100644 --- a/lib/game/components/ball.dart +++ b/lib/game/components/ball.dart @@ -4,8 +4,13 @@ import 'package:flutter/material.dart'; import 'package:forge2d/forge2d.dart'; import 'package:pinball/game/game.dart'; +/// {@template ball} +/// A solid, [BodyType.dynamic] sphere that rolls and bounces along the +/// [PinballGame]. +/// {@endtemplate} class Ball extends BodyComponent with BlocComponent { + /// {@macro ball} Ball({ required Vector2 position, }) : _position = position {