Log constructor

Log({
  1. Object classLocation = '',
  2. String functionLocation = '',
  3. Map<String, dynamic>? monitor,
  4. Map<String, dynamic>? debug,
  5. List<History>? historyList,
})

Implementation

Log({
    // runtimeType による指定も便利なので捨てがたい.
    // String と Type による両方の指定を受け付けれる形式にした.
    // toString() を実行すれば 正しい String 型で収まる.
    Object classLocation = '',
    this.functionLocation = '',
    // const にすると 内部的に unmodifiabl map and list になり 編集できなくなる.
    Map<String, dynamic>? monitor,
    Map<String, dynamic>? debug,
    List<History>? historyList,
})
:
    classLocation = classLocation.toString()
    ,_monitor = monitor ?? {}
    ,_debug = debug ?? {}
    ,_historyList = historyList ?? []
;