discontinuedPackage length_unit has been discontinued and replaced by dimension.

parseLength function

Length? parseLength(
  1. String? string
)

Implementation

Length? parseLength(String? string) {
  return Length.fromJson(string);
}