import 'package:mockito/annotations.dart';
import 'package:mockito/mockito.dart';
// Annotation which generates the cat.mocks.dart library and the MockCat class.
@GenerateNiceMocks([MockSpec<Cat>()])
import 'cat.mocks.dart';
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ignore_for_file: public_member_api_docs, sort_constructors_first | |
| import 'dart:async'; | |
| import 'dart:convert'; | |
| import 'package:crypto/crypto.dart'; | |
| import 'package:dio/dio.dart'; | |
| import 'package:shared_preferences/shared_preferences.dart'; | |
| import '../core.dart'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| import '../core.dart'; | |
| typedef MaybeFutureVoidCallback = FutureOr<void> Function(); | |
| /// A mixin class providing polling functionality for stateful widgets. | |
| mixin PollingMixin<T extends StatefulWidget> on State<T> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:async' show scheduleMicrotask, Timer; | |
| import 'dart:collection' show Queue; | |
| import 'dart:ui' show PointerDataPacket; | |
| import 'package:flutter/gestures.dart' show FlutterView, PointerEventConverter; | |
| import 'package:flutter/rendering.dart' show RenderView, ViewConfiguration; | |
| import 'package:flutter/widgets.dart'; | |
| /// The size of the screen is in logical pixels. | |
| /// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// A service for retrieving application service constants. | |
| abstract class ServiceConstantsService { | |
| /// Factory constructor to create an instance of [ServiceConstantsService]. | |
| factory ServiceConstantsService() => _instance; | |
| /// Singleton instance of [ServiceConstantsService]. | |
| static final ServiceConstantsService _instance = _ServiceConstantsService(); | |
| /// Retrieves a list of countries. | |
| /// |