Skip to content

Instantly share code, notes, and snippets.

View kevmoo's full-sized avatar
🤘
Crankin!

Kevin Moore kevmoo

🤘
Crankin!
View GitHub Profile
@kevmoo
kevmoo / main.dart
Created March 6, 2025 20:27
Using emoji!
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
@kevmoo
kevmoo / main.dart
Last active May 22, 2025 09:41
Negative zero and simplifying Dart code
void main() {
// Define different scenarios for t5 using Dart records
// (String name, double t5_value, String expected_behavior)
final List<(String name, double t5Value, String expectedBehavior)> scenarios =
[
('t5 is a regular number', 1.0, 'Simplification is okay'),
(
't5 is positive Infinity',
double.infinity,
'Simplification breaks due to NaN',