can someone tell me some infos about
@observable
@published
in combination with toObservable
imagine i have a .dart file that has a
@observable List array = toObservable([]);
that array will be passed down to another polyview.
so should i write
@published List array;
or
@published List array = toObservable([]);
would I have to repeat the toObservable
on published values that already have been initialized as toObservable
...
like having a complex object with 3 to 4 levels
migrationview observable migration
- actionsview published actions -> migration.actions
-createTableview published createTable -> actions.createTables
-tableview published table -> createTables.table
-columnview published columns -> table.columns
I want to be sure that the changes made in the column view eg add a list to the columns will be recognize by the observable migration object ..
whats the correct way for doing something .. and specially when using classes
and should I only specify maps and lists as toObservable()
what about classed
Migration migration = toObservable(new Migration()); // ???????
I already defined lists and maps inside migration as @observable