DefaultLinearConfiguration.fromConfig constructor

DefaultLinearConfiguration.fromConfig(
  1. double? strokeWidth,
  2. Color? backgroundColor
)

Implementation

factory DefaultLinearConfiguration.fromConfig(double? strokeWidth, Color? backgroundColor) {
  return DefaultLinearConfiguration()
    ..backgroundColor = backgroundColor ?? ConfigurationData.backgroundColor
    ..strokeWidth = ConfigurationData.strokeWidth;
}