mirror of https://github.com/flutter/pinball.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
688 B
24 lines
688 B
import 'package:equatable/equatable.dart';
|
|
import 'package:pinball_theme/pinball_theme.dart';
|
|
|
|
/// {@template pinball_theme}
|
|
/// Defines all theme assets and attributes.
|
|
///
|
|
/// Game components should have a getter specified here to load their
|
|
/// corresponding assets for the game.
|
|
/// {@endtemplate}
|
|
class PinballTheme extends Equatable {
|
|
/// {@macro pinball_theme}
|
|
const PinballTheme({
|
|
required CharacterTheme characterTheme,
|
|
}) : _characterTheme = characterTheme;
|
|
|
|
final CharacterTheme _characterTheme;
|
|
|
|
/// [CharacterTheme] for the chosen character.
|
|
CharacterTheme get characterTheme => _characterTheme;
|
|
|
|
@override
|
|
List<Object?> get props => [_characterTheme];
|
|
}
|