🚧 Este package inicialmente funciona somente em Android. 🚧
Esse package te ajudou? Me ajude a manter o projeto ativo. ⬇️
Este package foi testado nos seguintes SATs:
import 'package:flutter/material.dart'; | |
import 'dart:math'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Spinner Game', |
import 'dart:convert'; | |
import 'package:hive_flutter/hive_flutter.dart'; | |
part 'itens.g.dart'; | |
@HiveType(typeId: 0) | |
class Itens extends HiveObject { | |
@HiveField(0) | |
final String id; |
import 'dart:convert'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:app/data/models/menu/itens.dart'; | |
class Cart { | |
String? referencia; | |
List<Itens>? vendaMobileItens; | |
double? total; |
import 'dart:async'; | |
void main() { | |
final incremento = Stream<int>.periodic( | |
Duration(seconds: 3), | |
(index) => index + 1, | |
).take(10); | |
final multi = Stream<int>.multi((controller) { | |
int numero = 1000; |
String addHello(String user) => 'Hello $user'; | |
Future<String> greetUser() async { | |
var username = await fetchUsername(); | |
return addHello(username); | |
} | |
Future<String> sayGoodbye() async { | |
try { | |
var result = await logoutUser(); |
Future<String> createOrderMessage() async { | |
var order = await fetchUserOrder(); | |
return 'O pedido é: $order'; | |
} | |
Future<String> fetchUserOrder() => | |
Future.delayed( | |
const Duration(seconds: 3), | |
() => 'Bola de futebol', | |
); |
class SingletonOne { | |
SingletonOne._privateConstructor(); | |
static final _instance = SingletonOne._privateConstructor(); | |
factory SingletonOne() { | |
return _instance; | |
} | |
} | |
class SingletonTwo { | |
SingletonTwo._privateConstructor(); |
Never relationIsNotDefined() { | |
throw ArgumentError('Relação não definida'); | |
} | |
void main() { | |
String? relation; | |
String? checkRelation() { | |
if (relation != null) { |
dynamic a; | |
Object? b; | |
void main() { | |
a = ''; | |
b = ''; | |
printLength(); | |
} | |
printLength() { |