canAppend method

bool canAppend(
  1. dynamic data
)

Implementation

bool canAppend(data) => length() + data.length <= capacity!;