I hereby claim:
- I am kevmoo on github.
- I am kevmoo (https://keybase.io/kevmoo) on keybase.
- I have a public key whose fingerprint is 3E10 4CD0 17C0 7669 9A18 5344 C5F5 2AE0 8C6D B0DF
To claim this, I am signing this object:
| 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', |
| 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( |
| <!DOCTYPE html> | |
| <html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <title>Kevin Moore - Google Product Manager for Flutter and Dart</title> | |
| <meta name="viewport" content="width=device-width"/> | |
| <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/> | |
| <meta content="Kevin Moore" property="og:title"/> | |
| <meta name="description" content="Product manager at Google working on Flutter and Dart."/> | |
| <meta content="https://kevmoo.com" property="og:url"/> | |
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
| Graphics Feature Status | |
| ======================= | |
| * Canvas: Hardware accelerated | |
| * Canvas out-of-process rasterization: Enabled | |
| * Direct Rendering Display Compositor: Disabled | |
| * Compositing: Hardware accelerated | |
| * Multiple Raster Threads: Enabled | |
| * OpenGL: Enabled | |
| * Rasterization: Hardware accelerated | |
| * Raw Draw: Disabled |
| void main() { | |
| for (var i = 0; i < 64; i++) { | |
| print([i, 1 << i].join('\t')); | |
| } | |
| } |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/services.dart'; | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.key}); |
| Future<void> main() async { | |
| for (var func in [goodCatch, badCatch]) { | |
| print('Running $func'); | |
| try { | |
| await func(); | |
| } catch (e) { | |
| print('Why was this not caught? $e'); | |
| } | |
| print(''); | |
| } |
I hereby claim:
To claim this, I am signing this object:
| // Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file | |
| // for details. All rights reserved. Use of this source code is governed by a | |
| // BSD-style license that can be found in the LICENSE file. | |
| mixin AnswerMixin { | |
| int get answer => 42; | |
| @override | |
| String toString() => '[ $runtimeType ]'; | |
| } |
| // Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file | |
| // for details. All rights reserved. Use of this source code is governed by a | |
| // BSD-style license that can be found in the LICENSE file. | |
| import 'dart:math' as math; | |
| class Circle { | |
| double radius; | |
| Circle(this.radius); |