29 lines
645 B
Dart
29 lines
645 B
Dart
import 'package:notube/store/videos/videos.state.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
class AppState {
|
|
final VideosState videosState;
|
|
|
|
AppState({required this.videosState});
|
|
|
|
factory AppState.initial() => AppState(
|
|
videosState: VideosState.initial(),
|
|
);
|
|
|
|
@override
|
|
bool operator ==(other) =>
|
|
identical(this, other) ||
|
|
other is AppState &&
|
|
runtimeType == other.runtimeType &&
|
|
videosState == other.videosState;
|
|
|
|
@override
|
|
int get hashCode => super.hashCode ^ videosState.hashCode;
|
|
|
|
@override
|
|
String toString() {
|
|
return "AppState { videosState: $videosState }";
|
|
}
|
|
}
|