Skip to content
Snippets Groups Projects
Select Git revision
  • 54fd229d8a3a48750e7f37d5be60546af3400c81
  • master default protected
  • 21-add-onlongpress-with-popup-on-parameters
  • 23-center-vertically-buttons
  • 30-highlight-bin-when-selecting-disabled-item
  • 1.0.7 protected
  • 1.0.6 protected
  • 1.0.5 protected
  • 1.0.4 protected
  • 1.0.3 protected
  • 1.0.2 protected
  • 1.0.0 protected
  • 0.9.1 protected
  • 0.9.0 protected
  • 0.8.4 protected
  • 0.8.3 protected
  • 0.8.2 protected
  • 0.8.1 protected
  • 0.8.0 protected
  • 0.7.0 protected
  • 0.6.1 protected
  • 0.6.0 protected
  • 0.5.0 protected
  • 0.4.0 protected
  • 0.3.0 protected
25 results

settings_activity.dart

Blame
  • tile.dart 748 B
    import 'package:memory/utils/tools.dart';
    
    class Tile {
      Tile({
        required this.value,
        required this.selected,
        required this.paired,
      });
    
      int value = 0;
      bool selected = false;
      bool paired = false;
    
      factory Tile.createNull() {
        return Tile(
          value: 0,
          selected: false,
          paired: false,
        );
      }
    
      void dump() {
        printlog('');
        printlog('$Tile:');
        printlog('  value: $value');
        printlog('  selected: $selected');
        printlog('  paired: $paired');
        printlog('');
      }
    
      @override
      String toString() {
        return '$Tile(${toJson()})';
      }
    
      Map<String, dynamic>? toJson() {
        return <String, dynamic>{
          'value': value,
          'selected': selected,
          'paired': paired,
        };
      }
    }