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.
28 lines
791 B
28 lines
791 B
1 year ago
|
/*
|
||
|
* Copyright (c) 2023. Open Mobile Platform LLC.
|
||
|
* License: Proprietary.
|
||
|
*/
|
||
|
import 'package:flutter/widgets.dart';
|
||
|
import 'package:flutter_example_packages/packages/equatable/user_entity.dart';
|
||
|
import 'package:flutter_example_packages/packages/equatable/user_entity_equatable.dart';
|
||
|
import 'package:scoped_model/scoped_model.dart';
|
||
|
|
||
|
/// Model for [EquatablePage]
|
||
|
class EquatableModel extends Model {
|
||
|
/// Get [ScopedModel]
|
||
|
static EquatableModel of(BuildContext context) =>
|
||
|
ScopedModel.of<EquatableModel>(context);
|
||
|
|
||
|
UserEntity userEntity = const UserEntity(
|
||
|
name: 'Default',
|
||
|
email: 'default@yandex.ru',
|
||
|
age: 12,
|
||
|
);
|
||
|
|
||
|
UserEntityEquatable userEntityEquatable = const UserEntityEquatable(
|
||
|
name: 'Equatable',
|
||
|
email: 'default@yandex.ru',
|
||
|
age: 12,
|
||
|
);
|
||
|
}
|