handler function
#QUEST: Construct functions outside of Chore and use them for something. Assume that Chore needs outside-activity to organize all-Chore's. Outer functions return a String value to Map<String, String> operations. Some elementary: "execute-in-every-user-command-if-flagged" ideas. Sometimes these 11 functions are executed in EVERY occasion / keystroke..
-
-
- so they ARE outside of Chore class * * * PLAN small checks, updates, msg:s, note s aso. But only, if marked in "flow - chart" NOTE: ? _flowCOuter DO NOT HAVE ACCESS TO inside-class-name variable.' So it must be given in parameter. lol But when using these from outside of Chore, it is different story. Handling outer-functions feedback and saving it to => Map<String, String> operations value-field. To be seen: How complicated is to handle stuff outside class.
-
Implementation
//
/// Handling outer-functions feedback and saving it to
/// => Map<String, String> operations value-field.
/// To be seen: How complicated is to handle stuff outside class.
void handler(String _key, _inS, BlanketChore chr, var _act) {
/// devl:MIS no idea what this is doing, so just change it.
// announce value field changed.
// so: ':tGR:_ _ _ _ _ _ _ _ ' changed to: ':tGR: OK _ _ _ _ _ '
// chr.operations[_key].padRight(7, ' $_inS'); //= 'Changed: $_inS';
// howTo NULL + can not be; receiver can be NULL
// OK chr.operations[_key] = chr.operations[_key]! + ' $_inS';
chr.operations[_key] = chr.operations[_key]! + ' $_inS';
// should do _act
}