This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum EngagementType { unknown, newsItem, coachingTip, facilitation, surveyEngagement, videoMessage, textMessage, reflection, } | |
/// this one extension provides all the central policy logic for all EngagementTypes | |
extension EngagementManagement on EngagementType { | |
String get displayName { | |
switch (this) { | |
case EngagementType.reflection: | |
return 'Reflection'; | |
case EngagementType.textMessage: | |
return 'Text Message'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
analyzer: | |
errors: | |
undefined_prefixed_name: ignore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="root-node"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main() { | |
CurrentHuman.age = 5; | |
CurrentHuman.name = "Bob"; | |
CurrentHuman.name = "Sally"; | |
CurrentHuman.name = "Alfie"; | |
print('Hello, ${CurrentHuman.name} age ${CurrentHuman.age}'); | |
CurrentHuman.instance = Human() | |
..name = "Jack" | |
..age = 100; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2017, the Flutter 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:async'; | |
import 'dart:collection'; | |
import 'package:cloud_firestore/cloud_firestore.dart'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/material.dart'; |