UtilAPI constructor

UtilAPI({
  1. Rgb rgb(
    1. Object
    )?,
  2. Rgba rgba(
    1. Object
    )?,
  3. SolidPaint solidPaint(
    1. Object, [
    2. dynamic
    ])?,
  4. String normalizeMarkdown(
    1. String
    )?,
})

Implementation

factory UtilAPI({
  _i3.Rgb Function(_i2.Object)? rgb,
  _i3.Rgba Function(_i2.Object)? rgba,
  _i3.SolidPaint Function(
    _i2.Object, [
    _i2.dynamic,
  ])? solidPaint,
  _i2.String Function(_i2.String)? normalizeMarkdown,
}) =>
    UtilAPI._(
      rgb: rgb == null ? null : _i5.allowInterop(rgb),
      rgba: rgba == null ? null : _i5.allowInterop(rgba),
      solidPaint: solidPaint == null ? null : _i5.allowInterop(solidPaint),
      normalizeMarkdown: normalizeMarkdown == null
          ? null
          : _i5.allowInterop(normalizeMarkdown),
    );