doubleFromModel function

double doubleFromModel(
  1. Model model
)

Creates a double from a Model. If unsucessful, will return -1.

Implementation

double doubleFromModel(Model model) => model.data["data"]?.toDouble() ?? -1;