This file contains 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 'dart:convert'; | |
import 'dart:io'; | |
import 'package:pure/pure.dart'; | |
import 'package:translator/translator.dart'; | |
const languages = [ | |
"ru", | |
"pt", |
This file contains 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:convert'; | |
import 'dart:io'; | |
import 'package:pure/pure.dart'; | |
import 'package:stream_transform/stream_transform.dart'; | |
typedef Json = Map<String, Object?>; | |
extension on Directory { | |
String get scope => uri.pathSegments.elementAt(1); | |
} |
This file contains 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
void foo() { | |
try { | |
final double a = 1.0; | |
throw a; | |
} on int { | |
print('int'); | |
} on Object { | |
print('Object'); | |
} | |
} |
This file contains 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 'package:collection/collection.dart'; | |
import 'package:flutter/material.dart'; | |
A id<A>(A a) => a; | |
bool _unaryTrue(dynamic _) => true; | |
bool _notEquals(dynamic first, dynamic second) => | |
!const DeepCollectionEquality().equals(first, second); |
This file contains 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: avoid_print | |
import 'package:flutter/material.dart'; | |
import 'package:unidirectional/inherited_selector.dart'; | |
class AdditionModel { | |
final int first; | |
final int second; | |
const AdditionModel(this.first, this.second); |