Pub: https://pub.dev/packages/built_value
Enums: https://github.com/google/built_value.dart/blob/master/example/lib/enums.dart
# Add these packages to your pubspec.yaml
Pub: https://pub.dev/packages/built_value
Enums: https://github.com/google/built_value.dart/blob/master/example/lib/enums.dart
# Add these packages to your pubspec.yaml
var source = [1, 2, 3]; | |
var helper = []; | |
var target = []; | |
console.log(`source: ${source} helper: ${helper} target:${target}`); | |
function hanoi(n, from, help, to) { | |
if (n <= 0) return; | |
hanoi(n - 1, from, to, help); |
import 'package:flutter/material.dart'; | |
/// Based on https://www.youtube.com/watch?v=Wl4F5V6BoJw | |
class GradientRectSliderTrackShape extends SliderTrackShape | |
with BaseSliderTrackShape { | |
const GradientRectSliderTrackShape({ | |
this.gradient = const LinearGradient( | |
colors: [ | |
Colors.red, |