stringClampFromRight function

String stringClampFromRight(
  1. String input,
  2. int limit
)

Implementation

@pragma("vm:prefer-inline")
String stringClampFromRight(String input, int limit) =>
    input.length > limit ? input.substring(0, limit) : input;