Initial commit
This commit is contained in:
36
lib/objects/objects.dart
Normal file
36
lib/objects/objects.dart
Normal file
@@ -0,0 +1,36 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class DestinationObject {
|
||||
const DestinationObject(
|
||||
this.label,
|
||||
this.icon,
|
||||
this.selectedIcon,
|
||||
this.pageWidget,
|
||||
);
|
||||
|
||||
final String label;
|
||||
final Widget icon;
|
||||
final Widget selectedIcon;
|
||||
final Widget pageWidget;
|
||||
}
|
||||
|
||||
class UserData {
|
||||
const UserData(this.username, this.full_name, this.user_id, this.email);
|
||||
|
||||
final String user_id;
|
||||
final String username;
|
||||
final String full_name;
|
||||
final String email;
|
||||
}
|
||||
|
||||
class AuthenticatedUserData extends UserData {
|
||||
const AuthenticatedUserData({
|
||||
required String user_id,
|
||||
required String username,
|
||||
required String full_name,
|
||||
required String email,
|
||||
required this.access_token,
|
||||
}) : super(username, full_name, user_id, email);
|
||||
|
||||
final String access_token;
|
||||
}
|
||||
Reference in New Issue
Block a user