Although the function signature lists the options map as an optional parameter, if it is not passed, no defaults are substituted and mergeMap errors out.
Invocation: chart.draw(chartData);
Stacktrace:
EXCEPTION: NullError: invalid member on null: 'forEach'
STACKTRACE:
package:modern_charts/src/utils.dart 156:6 mergeMap
package:modern_charts/src/base.dart 873:25 draw
Although the function signature lists the
options
map as an optional parameter, if it is not passed, no defaults are substituted andmergeMap
errors out.Invocation:
chart.draw(chartData);
Stacktrace: