docs: included Ball method comment

pull/13/head
alestiago 4 years ago
parent f54e171cce
commit a9452b6f89

@ -4,8 +4,13 @@ import 'package:flutter/material.dart';
import 'package:forge2d/forge2d.dart'; import 'package:forge2d/forge2d.dart';
import 'package:pinball/game/game.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<PinballGame> class Ball extends BodyComponent<PinballGame>
with BlocComponent<GameBloc, GameState> { with BlocComponent<GameBloc, GameState> {
/// {@macro ball}
Ball({ Ball({
required Vector2 position, required Vector2 position,
}) : _position = position { }) : _position = position {

Loading…
Cancel
Save