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.
17 lines
457 B
17 lines
457 B
import 'package:flutter/widgets.dart'; |
|
import 'package:scoped_model/scoped_model.dart'; |
|
|
|
/// Model for [FlutterCacheManagerPage] |
|
class FlutterCacheManagerModel extends Model { |
|
/// Get [ScopedModel] |
|
static FlutterCacheManagerModel of(BuildContext context) => ScopedModel.of<FlutterCacheManagerModel>(context); |
|
|
|
/// Error |
|
String? _error; |
|
|
|
/// Public error |
|
String? get error => _error; |
|
|
|
/// Public is error |
|
bool get isError => _error != null; |
|
} |