puts method
Puts a name and a list of data directly into the log.
Implementation
LogBuilder puts(String name, List<dynamic>? data) {
if (data != null && data.isNotEmpty) {
_builder = "$_builder"
"$_startingSign"
"$name"
"$_puttingSeparator";
if (data.length > 3) {
_builder = "$_builder[ "
"${data[0]}, "
"${data[1]}, "
"${data[2]}... "
"${data.length} ]";
} else {
_builder = "$_builder$data";
}
_builder = "$_builder$_lineBreak";
return this;
} else {
return put(name, "null");
}
}