BodyInit typedef

BodyInit = Object?

Constructor input accepted by body implementations.

Standard detached forms:

Platform-specific extensions:

  • dart:io File on io

Native bodies normalize supported inputs into a detached block.Block when possible. Platform implementations may accept additional host-backed inputs before materialization.

Implementation

typedef BodyInit = Object?;