Operation constructor
Operation(
- dynamic book, {
- dynamic name,
- dynamic date,
- dynamic cplus,
- dynamic cminus,
- dynamic desc,
- dynamic cur,
- dynamic valuta,
- dynamic mod,
Constructor to initialize the operation.
Takes a Book
and optional parameters like name, date, and other attributes.
Implementation
Operation(book, {name, date, cplus, cminus, desc, cur, valuta, mod}) {
this.name = (name != null && name.isNotEmpty) ? name : "unknowntag";
this.book = (book != null) ? book : Book();
//assume we got a oneliner!
if ((cplus != null))
add(
date: date,
cplus: cplus,
cminus: cminus,
desc: desc,
cur: cur,
valuta: valuta,
mod: mod);
}