CPD-Gitty/trainerbox/lib/models/exercise.dart

27 lines
753 B
Dart

// models/exercise.dart
// Data model for a training exercise
// Datenmodell für eine Trainingsübung
import 'package:flutter/material.dart';
/// Represents a training exercise with a title, category, and icon.
/// Stellt eine Trainingsübung mit Titel, Kategorie und Icon dar.
class Exercise {
/// The name/title of the exercise.
// Name der Übung
final String title;
/// The category of the exercise.
// Kategorie der Übung
final String category;
/// The icon used to visually represent the exercise.
// Icon zur Darstellung
final IconData icon;
/// Creates an Exercise instance.
/// Erstellt eine neue Instanz einer Übung.
Exercise({
required this.title,
required this.category,
required this.icon,
});
}