We need to refactor the ProgramFragment class to move its parameters from the constructor to a newInstance function. This change will enhance code readability, improve maintainability, and align with best practices for fragment creation in Android development.
From
To
Additionally, it's crucial to modify the getProgramFragmentInstance function in AppRouter.kt.
We need to refactor the
ProgramFragment
class to move its parameters from the constructor to anewInstance
function. This change will enhance code readability, improve maintainability, and align with best practices for fragment creation in Android development.Additionally, it's crucial to modify the
getProgramFragmentInstance
function inAppRouter.kt
.