Rive constructor Null safety

const Rive(
  1. {required Artboard artboard,
  2. bool useArtboardSize = false,
  3. bool antialiasing = true,
  4. BoxFit? fit,
  5. Alignment? alignment}
)

Implementation

const Rive({
  required this.artboard,
  this.useArtboardSize = false,
  this.antialiasing = true,
  BoxFit? fit,
  Alignment? alignment,
})  : fit = fit ?? BoxFit.contain,
      alignment = alignment ?? Alignment.center;